Skip to content

Add Ja2Export target and get it to build on C++17 - #88

Merged
majcosta merged 1 commit into
1dot13:masterfrom
majcosta:pr_add_ja2export
Jan 26, 2023
Merged

Add Ja2Export target and get it to build on C++17#88
majcosta merged 1 commit into
1dot13:masterfrom
majcosta:pr_add_ja2export

Conversation

@majcosta

Copy link
Copy Markdown
Collaborator

nice little tool

@@ -0,0 +1,29 @@
option(BUILD_JA2EXPORT "Build the Ja2Export tool." ON)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this mean its by default built?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@@ -0,0 +1,29 @@
option(BUILD_JA2EXPORT "Build the Ja2Export tool." ON)

if(BUILD_JA2EXPORT)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I dont know best practices)
wouldnt it make more sense to skip the inclusion in the root CMakeLists instead of here?
would also make all what-to-build decisions be in a central location

@majcosta majcosta Jan 18, 2023

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like having the exporter tool decide whether to build configure itself or not. but there is a case for moving the option(...) to the root CMakeLists file.

@CptMoore

Copy link
Copy Markdown
Contributor

the github workflow release would fail with this tool being built and the exe being put in the output dir next to the lang exes, as right now only one exe is expected

is this exporter lang/app based? if not it probably makes sense to not build it at all for the lang/app builds and instead introduce another parallel build process and zip it as its own artifact

@majcosta

Copy link
Copy Markdown
Collaborator Author

the github workflow uses msbuild at the moment so it would, in fact, not fail with this change. :-)

@CptMoore

Copy link
Copy Markdown
Contributor

the github workflow uses msbuild at the moment so it would, in fact, not fail with this change. :-)

the msbuild workflow variant does not even build the tool ;)

but the cmake workflow variant would

@majcosta
majcosta merged commit 0ee2cfe into 1dot13:master Jan 26, 2023
@majcosta
majcosta deleted the pr_add_ja2export branch January 26, 2023 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants