fp: Start working on linux support
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
Build/
|
||||
Nocheckin/
|
||||
feely_pona_build.exe
|
||||
feely_pona_build
|
||||
feely_pona_version.txt
|
||||
Tools/emsdk
|
||||
|
||||
Vendored
+1
-1
Submodule External/tely updated: f6c96fb653...743d9684bc
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
build_dir=${script_dir}/Build
|
||||
code_dir=${script_dir}
|
||||
|
||||
# Bootstrap a version
|
||||
git show -s --date=format:%Y-%m-%d --format=%cd HEAD> feely_pona_version.txt
|
||||
git rev-parse --short=8 HEAD>> feely_pona_version.txt
|
||||
git rev-list --count HEAD>> feely_pona_version.txt
|
||||
|
||||
# Bootstrap the build program
|
||||
mkdir --parents ${build_dir}
|
||||
pushd ${build_dir}
|
||||
g++ -g -Wall -o feely_pona_build ${code_dir}/feely_pona_build.cpp -lm
|
||||
cp --force feely_pona_build ${code_dir}
|
||||
popd
|
||||
|
||||
# Run the build program
|
||||
# ${code_dir}\feely_pona_build.exe $@ || exit /B 1
|
||||
@@ -88,7 +88,7 @@ int main(int argc, char const **argv)
|
||||
bool dry_run = false;
|
||||
bool target_web = false;
|
||||
bool dev_fast_build = false;
|
||||
for (Dqn_usize arg_index = 1; arg_index < argc; arg_index++) {
|
||||
for (Dqn_isize arg_index = 1; arg_index < argc; arg_index++) {
|
||||
Dqn_Str8 arg = Dqn_Str8_InitCStr8(argv[arg_index]);
|
||||
if (arg == DQN_STR8("--help")) {
|
||||
PRINT_HELP;
|
||||
@@ -507,7 +507,6 @@ int main(int argc, char const **argv)
|
||||
|
||||
{
|
||||
Dqn_Str8 base_file = sokol_audio_source_code_file;
|
||||
Dqn_Str8 file_stem = Dqn_Str8_FileNameNoExtension(base_file);
|
||||
|
||||
// NOTE: Append "emscripten" suffix to the object files
|
||||
Dqn_CPPBuildCompileFile build_file = {};
|
||||
|
||||
Reference in New Issue
Block a user