Commit Graph
339 Commits
Author SHA1 Message Date
John Colvin dcf80d7067 build: Fix build_sparkd.py (broken since CMakePresets introduced)
Pass additional cmake opts through cli. Specifically, those that were
moved from CMakeLists.txt to CMakePrests.json
2023-01-02 18:42:39 -05:00
John Colvin 6b480afd43 build (sparkd): Automatically create py venv in build script 2023-01-02 18:42:39 -05:00
John Colvin 40d21542ae build (sparkd): Pipe 'eval' cmd stdout/err back to shell
So we can actually see the build output
2023-01-02 18:42:39 -05:00
John Colvin a8af5d2523 fix build: Compile with gcc/g++ (version agnostic)
We don't really need a strict dependency on a compiler version, though
best practice is to use the latest gcc (12).
2023-01-02 18:42:39 -05:00
John Colvin bfd12aed63 tools (log): Fix 'pretty' script & rename 'show_last_run' 2023-01-02 18:42:39 -05:00
John Colvin edae3c9ab7 build (refactor): Remove 'zip' opt from publish_spark
The slight convenience afforded by this opt doesn't seem worth the
additional complexity. This script produces a self-contained application
folder. Decisions on what to do with that folder (whether or not to zip
it, etc.) are best left upstream.
2022-12-23 11:40:35 -05:00
John Colvin 6142a08db6 build (client): Copy libspark.dll to 'publish' dir
This dll isn't automatically copied when 'dotnet publish' is executed, because
dotnet core isn't really integrated with cpp
2022-09-21 00:17:31 -05:00
John Colvin c8eb51c303 build (refactor): Move web build scripts to tools/py
Even though they're specific to the web CMakeLists proj, it's good to have all
build scripts in one place
2022-09-21 00:17:31 -05:00
John Colvin 4160233a58 build: Get rid of redundant setup_builds.sh
The new build_sparkd.py script handles both configuration and actual build
2022-09-21 00:17:31 -05:00
John Colvin c5f79f754b build: Compile sparkd w/ newer gcc v11 2022-09-21 00:17:31 -05:00
John Colvin f5c8c29f5a build: Migrate web build to net6.0
Clean up the web build process a bit while we're at it
* Add 'custom_commands' to run npm install in CMakeLists
* Generate tsconfig files for CMake preset configurations
* Rename local variables to _snake_case in CMakeLists
2022-09-21 00:14:38 -05:00
John Colvin c3d9443a89 build: Automate venv activation in server build 2022-09-21 00:14:38 -05:00
John Colvin 1d7d5858d5 build: Add script to build sparkd (server)
Similar to the py script used to build spark (client), 'build_spark.py'.
2022-09-21 00:14:38 -05:00
John Colvin 8792f24c5d refactor (build): Move '_exit' to common module logging
Also rename 'exit_msg' since 'exit' is already a builtin fn
2022-09-21 00:14:38 -05:00
John Colvin 76d35b16eb refactor (build): Change SparkPaths to return Path objs 2022-09-21 00:14:38 -05:00
John Colvin 81f7fe72ab refactor (build): Move CWD & SparkPaths to common module file_utils 2022-09-21 00:14:38 -05:00
John Colvin 45421eedce chore: Move 'CME' specific script to 'cme' dir 2022-09-19 17:50:40 -05:00
John Colvin 8ecb3118e4 refactor (script): Use Path type rather than str 2022-09-19 17:50:40 -05:00
John Colvin 3fdb10890d chore: Rename scripts w/ consistent grammar 2022-09-19 17:50:40 -05:00
John Colvin 2a6224c88d chore: Move py scripts/utils into 'py' dir 2022-09-19 17:50:40 -05:00
John Colvin 8d6ddc8250 chore: Remove unused legacy scripts 2022-09-19 17:50:40 -05:00
John Colvin 6cc8590a1c build: Use venv python to execute buildspark.py
Previously, the virtual environment was activated in the Proto3 build target.
Since the proto3 build target is executed once per proto file, and 91 proto
files are processed during the client cs build, this added significant time to
the build. For example, on [John's]my laptop, activating the venv takes ~0.15s,
which amounts to ~9.55 secs per build.
2022-09-19 17:50:40 -05:00
John Colvin 063d908775 build: Remove unused legacy build script 2022-09-19 17:50:40 -05:00
John Colvin 93565f0ebf fix (jenkins): Update jenkins build procedures for spark-crypto 2022-09-19 17:50:40 -05:00
John Colvin 1d7fcf5d18 build: Move ':create_venv' fn to its own cmd script
So jenkins scripts can reference it as well as buildspark.cmd
2022-09-19 17:50:40 -05:00
John Colvin 897d20f12f build: Refactor buildspark.py so 'build' fn can be imported
This way, jenkins build/deploy py scripts can import 'buildspark.build', and thus
don't have to than re-invent the 'build' wheel
2022-09-19 17:50:40 -05:00
John Colvin a928925252 build: Add 'publish' target to build script for jenkins 2022-09-19 17:50:39 -05:00
John Colvin 4088affa15 fix (sparkd clang): Use 'clang' c compiler w/ 'clang++'
Otherwise cmake picks 'cc' by default

Bugs (fixed):
  * Sparkd crashes due to strange runtime error related to multithreaded access
    of std::promise in clang builds
2022-09-19 17:50:39 -05:00
John Colvin 82ac189ac9 refactor: Strip 'Wrapper' from 'DeferrableActionWrapper' name 2022-08-10 14:26:27 -04:00
John Colvin bbadbf8e16 build: Move .cmake files to cmake dir (from tools) 2022-06-03 10:42:32 -04:00
John Colvin f8059cc87e build: Add verbosity opt to buildspark.py 2022-06-02 17:44:38 -04:00
John Colvin 5e1cac251b fix: Actually copy untracked files in git-save.py 2022-04-19 11:42:38 -04:00
John Colvin ff9b4f5b2f build: Upgrade dotnet core 5.0 -> 6.0 2022-04-19 11:42:38 -04:00
John Colvin ccdc033c60 build (client): Activate py venv before generating cpp protos
Finally, the client can be built from a shell outside of the venv
2022-02-28 14:21:31 -05:00
John Colvin ed864cae5d style: Format cmake files 2022-02-28 14:21:31 -05:00
John Colvin 33e2f4b6ff build: Use appropriate debugtype arg for debug/release 2022-02-28 14:21:30 -05:00
John Colvin 3dfbc2635a build: Set CMP0076 explicitly to remove warning 2022-02-04 17:41:29 -05:00
John Colvin 293fc233f7 Add git-save script to backup changed files 2022-02-04 17:41:29 -05:00
John Colvin a99f95853a refactor: Abstract out argparse/file utils from buildspark.py 2022-02-04 17:41:29 -05:00
John Colvin 7d7ccc67e0 build: Fix typo in buildspark.py
* Replace literal '2022' w/ var 'year'
2022-02-04 17:41:29 -05:00
John Colvin 9314911cc8 build (client): Activate venv in msbuild target
Now buildspark.py can run outside of venv
2022-01-23 15:25:32 -05:00
John Colvin 67dc07c4f5 build (client): Add cli opts to build cpp and/or csharp 2022-01-23 15:25:06 -05:00
John Colvin 40890f9ad2 build: Upgrade client build to vs 17 2022
If vs 17 2022 isn't installed, buildspark.py should still work for vs 16 2019
2022-01-23 13:17:46 -05:00
John Colvin 1b9ac61588 Add save-log script to backup log file
The current date and time is appended to the log file name
2022-01-22 12:46:52 -05:00
John Colvin f0d86b92fb build: Add target opt to build cmd 2021-12-29 13:18:46 -05:00
John Colvin e3128c11a2 build: Copy (rather than symlink) .build_proxy to build
The sole purpose of the buildspark_redirect script is to workaround a bug in
the vscode c# extension.  Unfortunately some buggy behavior persists when these
dirs are symlinked.
2021-12-29 00:50:09 -05:00
John Colvin 0c73900f57 build: Add --link-output-dir arg to buildspark.py 2021-12-21 11:50:54 -05:00
John Colvin f66749ee25 buildspark.py exists with code 1 on exception 2021-12-21 11:50:54 -05:00
John Colvin 043a9ecb4a Reword buildspark --output-dir help text 2021-12-21 11:50:54 -05:00
John Colvin 7819c1175a Upgrade compiler to clang-10 2021-12-11 15:50:50 -05:00