Skip to content

Commit

Permalink
v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marzer committed Jul 29, 2023
1 parent d944055 commit 337fc74
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 99 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changelog

## Unreleased
## v0.1.0

- First public release.
- First public release 🎉️
74 changes: 3 additions & 71 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,81 +5,13 @@ Struct-of-Arrays generator for C++ projects.
[![Sponsor](docs/images/badge-sponsor.svg)][sponsor]
[![Gitter](docs/images/badge-gitter.svg)][gitter]

- [Installation](#installation)
- [Usage](#usage)
- [Config file options](#config-file-options)
- [License and Attribution](#license-and-attribution)

<br><br>

## Installation

### Prerequisites:

- Python 3.9+

### Then:

```
pip install soagen
```
<p align="center">
<strong>✨&#xFE0F; This README is as stub. Please see the HTML documentation: <a href="https://marzer.github.io/soagen/">marzer.github.io/soagen</a>✨&#xFE0F;</strong>
</p>

<br><br>

## Usage

Soagen is a command-line application.

```
usage: soagen [-h] [-v] [--version] [--install <dir>] [--werror | --no-werror]
[--color | --no-color] [--clang-format | --no-clang-format]
[--doxygen | --no-doxygen] [--natvis | --no-natvis] [--bug-report]
[configs ...]
___ ___ __ _ __ _ ___ _ __
/ __|/ _ \ / _` |/ _` |/ _ \ '_ \
\__ \ (_) | (_| | (_| | __/ | | |
|___/\___/ \__,_|\__, |\___|_| |_|
__/ |
|___/ v0.0.2 - marzer.github.io/soagen
Struct-of-Arrays generator for C++ projects.
positional arguments:
configs zero or more .toml files describing your structures-of-arrays
(wildcards are accepted, e.g. soa/*.toml)
options:
-h, --help show this help message and exit
-v, --verbose enable very noisy diagnostic output
--version print the version and exit
--install <dir> install soagen.hpp into a directory
--werror, --no-werror
treat warnings as errors (default: False)
--color, --no-color use colors in terminal output (default: True)
(the British spelling "colour" is also accepted)
--clang-format, --no-clang-format
attempt to run clang-format on generated code (default: True)
--doxygen, --no-doxygen
include doxygen markup in the generated code (default: False)
--natvis, --no-natvis
generate .natvis files for Visual Studio (default: True)
--bug-report capture all inputs and outputs in a bug-report zip file
```

<br><br>

## Config file options

See the [Configuration options] wiki page.

<br><br>

## License and Attribution

This project is published under the terms of the [MIT license](https://github.com/marzer/soagen/blob/main/LICENSE.txt).

[configuration options]: https://github.com/marzer/soagen/wiki/Configuration-options
[feature request]: https://github.com/marzer/soagen/issues/new
[gitter]: https://gitter.im/marzer/community
[sponsor]: https://github.com/sponsors/marzer
8 changes: 4 additions & 4 deletions docs/pages/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ usage: soagen [-h] [-v] [--version] [--install <dir>] [--werror | --no-werror]
\__ \ (_) | (_| | (_| | __/ | | |
|___/\___/ \__,_|\__, |\___|_| |_|
__/ |
|___/ v0.0.2 - marzer.github.io/soagen
|___/ v0.1.0 - marzer.github.io/soagen
Struct-of-Arrays generator for C++ projects.
Expand Down Expand Up @@ -362,7 +362,7 @@ Now run `soagen`:
> soagen src/*.toml
soagen v0.0.2
soagen v0.1.0
Reading src/entities.toml
Running clang-format for src/entities.hpp
Writing src/entities.hpp
Expand Down Expand Up @@ -403,7 +403,7 @@ too:
```plaintext
> soagen --install src
soagen v0.0.2
soagen v0.1.0
Copying soagen.hpp to src
All done!
```
Expand Down Expand Up @@ -541,7 +541,7 @@ the soagen::emplacer:
```cpp
using soagen::emplacer;
e.emplace_back(4, emplacer{ 10, 'A' }, {0,0,0}, {1,0,0,0});
e.emplace_back(4, emplacer{ 10, 'A' }, vec3{0,0,0}, quaternion{1,0,0,0});
// defaults also work with emplace and emplace_back()
e.emplace_back(5, emplacer{ 10, 'B' });
Expand Down
8 changes: 8 additions & 0 deletions docs/pages/schema.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
@page schema Config File Schema

@tableofcontents

<!-- --------------------------------------------------------------------------------------------------------------- -->

@section schema_todo TODO

This site is brand new - this document is still being written! Check back in a day or so. [emoji smile]

<!-- --------------------------------------------------------------------------------------------------------------- -->
6 changes: 3 additions & 3 deletions examples/entities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// See https://github.com/marzer/soagen/blob/master/LICENSE for the full license text.
// SPDX-License-Identifier: MIT
//----------------------------------------------------------------------------------------------------------------------
// This file was generated by soagen v0.0.2 - do not modify it directly
// This file was generated by soagen v0.1.0 - do not modify it directly
// https://marzer.github.io/soagen
//----------------------------------------------------------------------------------------------------------------------
#pragma once
Expand All @@ -15,8 +15,8 @@
/// @note The code and documentation in this file were generated by soagen - https://marzer.github.io/soagen

#include <soagen.hpp>
#if SOAGEN_VERSION_MAJOR != 0 || SOAGEN_VERSION_MINOR != 0
#error soagen version mismatch - expected v0.0.X
#if SOAGEN_VERSION_MAJOR != 0 || SOAGEN_VERSION_MINOR < 1
#error soagen version mismatch - expected v0.1.X
#endif

SOAGEN_DISABLE_WARNINGS;
Expand Down
2 changes: 1 addition & 1 deletion examples/entities.natvis
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// This file was generated by soagen v0.0.2 - do not modify it directly
// This file was generated by soagen v0.1.0 - do not modify it directly
// https://marzer.github.io/soagen
-->
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
Expand Down
6 changes: 3 additions & 3 deletions examples/shapes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// See https://github.com/marzer/soagen/blob/master/LICENSE for the full license text.
// SPDX-License-Identifier: MIT
//----------------------------------------------------------------------------------------------------------------------
// This file was generated by soagen v0.0.2 - do not modify it directly
// This file was generated by soagen v0.1.0 - do not modify it directly
// https://marzer.github.io/soagen
//----------------------------------------------------------------------------------------------------------------------
#pragma once
Expand All @@ -15,8 +15,8 @@
/// @note The code and documentation in this file were generated by soagen - https://marzer.github.io/soagen

#include <soagen.hpp>
#if SOAGEN_VERSION_MAJOR != 0 || SOAGEN_VERSION_MINOR != 0
#error soagen version mismatch - expected v0.0.X
#if SOAGEN_VERSION_MAJOR != 0 || SOAGEN_VERSION_MINOR < 1
#error soagen version mismatch - expected v0.1.X
#endif

SOAGEN_DISABLE_WARNINGS;
Expand Down
2 changes: 1 addition & 1 deletion examples/shapes.natvis
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// This file was generated by soagen v0.0.2 - do not modify it directly
// This file was generated by soagen v0.1.0 - do not modify it directly
// https://marzer.github.io/soagen
-->
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
project(
'soagen',
'cpp',
version : '0.0.2',
version : '0.1.0',
meson_version : '>=0.60.0',
license : 'MIT',
default_options : [ 'cpp_std=c++17', 'b_ndebug=if-release', 'buildtype=release' ]
Expand Down
2 changes: 1 addition & 1 deletion src/soagen/header_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def write(self, o: Writer):
o(
rf'''
#include <soagen.hpp>
#if SOAGEN_VERSION_MAJOR != {VERSION[0]} || SOAGEN_VERSION_MINOR != {VERSION[1]}
#if SOAGEN_VERSION_MAJOR != {VERSION[0]} || SOAGEN_VERSION_MINOR < {VERSION[1]}
#error soagen version mismatch - expected v{VERSION[0]}.{VERSION[1]}.X
#endif
'''
Expand Down
6 changes: 3 additions & 3 deletions src/soagen/hpp/generated/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
#pragma once

#define SOAGEN_VERSION_MAJOR 0
#define SOAGEN_VERSION_MINOR 0
#define SOAGEN_VERSION_PATCH 2
#define SOAGEN_VERSION_STRING "0.0.2"
#define SOAGEN_VERSION_MINOR 1
#define SOAGEN_VERSION_PATCH 0
#define SOAGEN_VERSION_STRING "0.1.0"
8 changes: 4 additions & 4 deletions src/soagen/hpp/single/soagen.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//----------------------------------------------------------------------------------------------------------------------
//
// soagen.hpp v0.0.2
// soagen.hpp v0.1.0
// https://github.com/marzer/soagen
// SPDX-License-Identifier: MIT
//
Expand Down Expand Up @@ -32,9 +32,9 @@
//******** generated/version.hpp *************************************************************************************

#define SOAGEN_VERSION_MAJOR 0
#define SOAGEN_VERSION_MINOR 0
#define SOAGEN_VERSION_PATCH 2
#define SOAGEN_VERSION_STRING "0.0.2"
#define SOAGEN_VERSION_MINOR 1
#define SOAGEN_VERSION_PATCH 0
#define SOAGEN_VERSION_STRING "0.1.0"

//******** generated/preprocessor.hpp ********************************************************************************

Expand Down
2 changes: 1 addition & 1 deletion src/soagen/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.2
0.1.0
6 changes: 3 additions & 3 deletions tests/employees.hpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//----------------------------------------------------------------------------------------------------------------------
// This file was generated by soagen v0.0.2 - do not modify it directly
// This file was generated by soagen v0.1.0 - do not modify it directly
// https://marzer.github.io/soagen
//----------------------------------------------------------------------------------------------------------------------
#pragma once

#include <soagen.hpp>
#if SOAGEN_VERSION_MAJOR != 0 || SOAGEN_VERSION_MINOR != 0
#error soagen version mismatch - expected v0.0.X
#if SOAGEN_VERSION_MAJOR != 0 || SOAGEN_VERSION_MINOR < 1
#error soagen version mismatch - expected v0.1.X
#endif

SOAGEN_DISABLE_WARNINGS;
Expand Down
2 changes: 1 addition & 1 deletion tests/employees.natvis
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
// This file was generated by soagen v0.0.2 - do not modify it directly
// This file was generated by soagen v0.1.0 - do not modify it directly
// https://marzer.github.io/soagen
-->
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
Expand Down

0 comments on commit 337fc74

Please sign in to comment.