Skip to content

Commit

Permalink
Fix cmake -f error.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaochenyang committed Jun 19, 2024
1 parent d07d320 commit 3d6340d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Il2Native.Logic/CCodeFilesGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public void WriteBuildFiles(AssemblyIdentity identity, ISet<AssemblyIdentity> re
// build mingw32 DEBUG .bat
var buildMinGw32 = @"md __build_mingw32_<%build_type_lowercase%>
cd __build_mingw32_<%build_type_lowercase%>
cmake -f .. -G ""MinGW Makefiles"" -DCMAKE_BUILD_TYPE=<%build_type%> -Wno-dev
cmake .. -G ""MinGW Makefiles"" -DCMAKE_BUILD_TYPE=<%build_type%> -Wno-dev
mingw32-make -j 8 2>log";

using (var itw = new IndentedTextWriter(new StreamWriter(this.GetPath("build_mingw32_debug", ".bat"))))
Expand All @@ -250,7 +250,7 @@ cd __build_mingw32_<%build_type_lowercase%>
// build linux clang DEBUG .sh
var buildUnix = @"mkdir __build_linux_<%build_type_lowercase%>
cd __build_linux_<%build_type_lowercase%>
cmake -f .. -G ""Unix Makefiles"" -DCMAKE_BUILD_TYPE=<%build_type%> -Wno-dev
cmake .. -G ""Unix Makefiles"" -DCMAKE_BUILD_TYPE=<%build_type%> -Wno-dev
make -j 8 2>log";

using (var itw = new IndentedTextWriter(new StreamWriter(this.GetPath("build_gcc_debug", ".sh"))))
Expand Down Expand Up @@ -282,7 +282,7 @@ cd __build_linux_<%build_type_lowercase%>
cd __build_linux_<%build_type_lowercase%>
export CC=clang
export CXX=clang++
cmake -f .. -G ""Unix Makefiles"" -DCMAKE_BUILD_TYPE=<%build_type%> -Wno-dev
cmake .. -G ""Unix Makefiles"" -DCMAKE_BUILD_TYPE=<%build_type%> -Wno-dev
make -j 8 2>log
";

Expand Down Expand Up @@ -313,7 +313,7 @@ cd __build_linux_<%build_type_lowercase%>
// build Visual Studio 2015 .bat
var buildVS2015 = @"md __build_win32_<%build_type_lowercase%>
cd __build_win32_<%build_type_lowercase%>
cmake -f .. -G ""Visual Studio 14"" -DCMAKE_BUILD_TYPE=<%build_type%> -Wno-dev
cmake .. -G ""Visual Studio 14"" -DCMAKE_BUILD_TYPE=<%build_type%> -Wno-dev
call ""%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat"" amd64_x86
MSBuild ALL_BUILD.vcxproj /m:8 /p:Configuration=<%build_type%> /p:Platform=""Win32"" /toolsversion:14.0";

Expand All @@ -332,7 +332,7 @@ cd __build_win32_<%build_type_lowercase%>
// build Visual Studio 2017 .bat
var buildVS2017 = @"md __build_win32_<%build_type_lowercase%>
cd __build_win32_<%build_type_lowercase%>
cmake -f .. -G ""Visual Studio 15"" -DCMAKE_BUILD_TYPE=<%build_type%> -Wno-dev
cmake .. -G ""Visual Studio 15"" -DCMAKE_BUILD_TYPE=<%build_type%> -Wno-dev
call ""%VS150COMNTOOLS%\..\..\VC\Auxiliary\Build\vcvarsall.bat"" amd64_x86
MSBuild ALL_BUILD.vcxproj /m:8 /p:Configuration=<%build_type%> /p:Platform=""Win32"" /toolsversion:15.0";

Expand All @@ -351,7 +351,7 @@ cd __build_win32_<%build_type_lowercase%>
// build Visual Studio .bat
var buildVS2015TegraAndroid = @"md __build_vs_android_<%build_type_lowercase%>
cd __build_vs_android_<%build_type_lowercase%>
cmake -f .. -G ""Visual Studio 14"" -DCMAKE_BUILD_TYPE=<%build_type%> -DCMAKE_SYSTEM_NAME=Android -Wno-dev
cmake .. -G ""Visual Studio 14"" -DCMAKE_BUILD_TYPE=<%build_type%> -DCMAKE_SYSTEM_NAME=Android -Wno-dev
call ""%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat"" amd64_x86
MSBuild ALL_BUILD.vcxproj /m:8 /p:Configuration=<%build_type%> /p:Platform=""Win32"" /toolsversion:14.0";

Expand All @@ -374,7 +374,7 @@ cd __build_vs_android_<%build_type_lowercase%>
if not exist bdwgc/libatomic_ops (git clone git://github.com/ivmai/libatomic_ops.git bdwgc/libatomic_ops)
md __build_mingw32_<%build_type_lowercase%>_bdwgc
cd __build_mingw32_<%build_type_lowercase%>_bdwgc
cmake -f ../bdwgc -G ""MinGW Makefiles"" -Denable_threads:BOOL=ON -Denable_parallel_mark:BOOL=ON -Denable_cplusplus:BOOL=ON -Denable_gcj_support:BOOL=ON -DCMAKE_BUILD_TYPE=<%build_type%> -DCMAKE_USE_WIN32_THREADS_INIT=ON -Wno-dev
cmake ../bdwgc -G ""MinGW Makefiles"" -Denable_threads:BOOL=ON -Denable_parallel_mark:BOOL=ON -Denable_cplusplus:BOOL=ON -Denable_gcj_support:BOOL=ON -DCMAKE_BUILD_TYPE=<%build_type%> -DCMAKE_USE_WIN32_THREADS_INIT=ON -Wno-dev
mingw32-make -j 8 2>log
";

Expand All @@ -394,7 +394,7 @@ cd __build_mingw32_<%build_type_lowercase%>_bdwgc
if [ ! -d bdwgc/libatomic_ops ]; then (git clone git://github.com/ivmai/libatomic_ops.git bdwgc/libatomic_ops); fi
mkdir __build_linux_<%build_type_lowercase%>_bdwgc
cd __build_linux_<%build_type_lowercase%>_bdwgc
cmake -f ../bdwgc -G ""Unix Makefiles"" -Denable_threads:BOOL=ON -Denable_parallel_mark:BOOL=ON -Denable_cplusplus:BOOL=ON -Denable_gcj_support:BOOL=ON -DCMAKE_BUILD_TYPE=<%build_type%> -DCMAKE_USE_WIN32_THREADS_INIT=OFF -Wno-dev
cmake ../bdwgc -G ""Unix Makefiles"" -Denable_threads:BOOL=ON -Denable_parallel_mark:BOOL=ON -Denable_cplusplus:BOOL=ON -Denable_gcj_support:BOOL=ON -DCMAKE_BUILD_TYPE=<%build_type%> -DCMAKE_USE_WIN32_THREADS_INIT=OFF -Wno-dev
make -j 8 2>log";

using (var itw = new IndentedTextWriter(new StreamWriter(this.GetPath("build_prerequisite_gcc_debug", ".sh"))))
Expand Down Expand Up @@ -427,7 +427,7 @@ mkdir __build_linux_<%build_type_lowercase%>_bdwgc
cd __build_linux_<%build_type_lowercase%>_bdwgc
export CC=clang
export CXX=clang++
cmake -f ../bdwgc -G ""Unix Makefiles"" -Denable_threads:BOOL=ON -Denable_parallel_mark:BOOL=ON -Denable_cplusplus:BOOL=ON -Denable_gcj_support:BOOL=ON -DCMAKE_BUILD_TYPE=<%build_type%> -DCMAKE_USE_WIN32_THREADS_INIT=OFF -Wno-dev
cmake ../bdwgc -G ""Unix Makefiles"" -Denable_threads:BOOL=ON -Denable_parallel_mark:BOOL=ON -Denable_cplusplus:BOOL=ON -Denable_gcj_support:BOOL=ON -DCMAKE_BUILD_TYPE=<%build_type%> -DCMAKE_USE_WIN32_THREADS_INIT=OFF -Wno-dev
make -j 8 2>log";

using (var itw = new IndentedTextWriter(new StreamWriter(this.GetPath("build_prerequisite_clang_debug", ".sh"))))
Expand Down Expand Up @@ -459,7 +459,7 @@ cd __build_linux_<%build_type_lowercase%>_bdwgc
if not exist bdwgc/libatomic_ops (git clone git://github.com/ivmai/libatomic_ops.git bdwgc/libatomic_ops)
md __build_win32_<%build_type_lowercase%>_bdwgc
cd __build_win32_<%build_type_lowercase%>_bdwgc
cmake -f ../bdwgc -G ""Visual Studio 14"" -Denable_threads:BOOL=ON -Denable_parallel_mark:BOOL=ON -Denable_cplusplus:BOOL=ON -Denable_gcj_support:BOOL=ON -DCMAKE_BUILD_TYPE=<%build_type%> -Wno-dev
cmake ../bdwgc -G ""Visual Studio 14"" -Denable_threads:BOOL=ON -Denable_parallel_mark:BOOL=ON -Denable_cplusplus:BOOL=ON -Denable_gcj_support:BOOL=ON -DCMAKE_BUILD_TYPE=<%build_type%> -Wno-dev
call ""%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat"" amd64_x86
MSBuild ALL_BUILD.vcxproj /m:8 /p:Configuration=<%build_type%> /p:Platform=""Win32"" /toolsversion:14.0";

Expand All @@ -480,7 +480,7 @@ cd __build_win32_<%build_type_lowercase%>_bdwgc
if not exist bdwgc/libatomic_ops (git clone git://github.com/ivmai/libatomic_ops.git bdwgc/libatomic_ops)
md __build_win32_<%build_type_lowercase%>_bdwgc
cd __build_win32_<%build_type_lowercase%>_bdwgc
cmake -f ../bdwgc -G ""Visual Studio 15"" -Denable_threads:BOOL=ON -Denable_parallel_mark:BOOL=ON -Denable_cplusplus:BOOL=ON -Denable_gcj_support:BOOL=ON -DCMAKE_BUILD_TYPE=<%build_type%> -Wno-dev
cmake ../bdwgc -G ""Visual Studio 15"" -Denable_threads:BOOL=ON -Denable_parallel_mark:BOOL=ON -Denable_cplusplus:BOOL=ON -Denable_gcj_support:BOOL=ON -DCMAKE_BUILD_TYPE=<%build_type%> -Wno-dev
call ""%VS150COMNTOOLS%\..\..\VC\Auxiliary\Build\vcvarsall.bat"" amd64_x86
MSBuild ALL_BUILD.vcxproj /m:8 /p:Configuration=<%build_type%> /p:Platform=""Win32"" /toolsversion:15.0";

Expand All @@ -501,7 +501,7 @@ cd __build_win32_<%build_type_lowercase%>_bdwgc
if not exist bdwgc/libatomic_ops (git clone git://github.com/ivmai/libatomic_ops.git bdwgc/libatomic_ops)
md __build_vs_android_<%build_type_lowercase%>_bdwgc
cd __build_vs_android_<%build_type_lowercase%>_bdwgc
cmake -f ../bdwgc -G ""Visual Studio 14"" -Denable_threads:BOOL=ON -Denable_parallel_mark:BOOL=ON -Denable_cplusplus:BOOL=OFF -Denable_gcj_support:BOOL=ON -DCMAKE_BUILD_TYPE=<%build_type%> -DCMAKE_SYSTEM_NAME=Android -Wno-dev
cmake ../bdwgc -G ""Visual Studio 14"" -Denable_threads:BOOL=ON -Denable_parallel_mark:BOOL=ON -Denable_cplusplus:BOOL=OFF -Denable_gcj_support:BOOL=ON -DCMAKE_BUILD_TYPE=<%build_type%> -DCMAKE_SYSTEM_NAME=Android -Wno-dev
call ""%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat"" amd64_x86
MSBuild ALL_BUILD.vcxproj /m:8 /p:Configuration=<%build_type%> /p:Platform=""Win32"" /toolsversion:14.0";

Expand Down
Binary file modified Il2Native.Logic/Resources/CoreLibImpl.zip
Binary file not shown.
Binary file modified Il2Native.Logic/Resources/System_ConsoleImpl.zip
Binary file not shown.
Binary file modified Il2Native.Logic/Resources/System_Private_CoreLibImpl.zip
Binary file not shown.

0 comments on commit 3d6340d

Please sign in to comment.