mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 12:49:01 +08:00
637c236d18
* [new port] squirrel * Add versions * Fix squirrel portfile according to new standards * Add version to squirrel * Remove all files from /bin directory * Update squirrel version * Could not fix the execs in bin/ directory hence simply enforced dir removal * Update versions * Remove obsolete version Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Remove trailing comma * Remove bin files only when not using squirrel as library * Do not remove bin dir when on win32 and dynamic linking because of dlls * Fixing the bin directory cleanup for various platforms * Update versions * Smart remove bin directory for static vs dynamic build; add note on the binaries there * Update version * Define 'interpreter' feature which controls building sq and sq_static binaries * Update version and revision of squirrel to the most recent one * Update versions database * Remove bin/ directory for static build * Update versions database * Apply suggestions from code review Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update versions * Fix interpreter tool * Update versions * Add patch to optionally build squirrel interpreter * Update versions * [new port] squirrel Add versions Fix squirrel portfile according to new standards Add version to squirrel Remove all files from /bin directory Update squirrel version Could not fix the execs in bin/ directory hence simply enforced dir removal Update versions Remove obsolete version Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Remove trailing comma Remove bin files only when not using squirrel as library Do not remove bin dir when on win32 and dynamic linking because of dlls Fixing the bin directory cleanup for various platforms Update versions Smart remove bin directory for static vs dynamic build; add note on the binaries there Update version Define 'interpreter' feature which controls building sq and sq_static binaries Update version and revision of squirrel to the most recent one Update versions database Remove bin/ directory for static build Update versions database Apply suggestions from code review Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Update versions Fix interpreter tool Update versions Add patch to optionally build squirrel interpreter Update versions Conditionally build sq and sq_static Update versions * Change line endings to LF * Update versions * Change line endings to LF * Update versions Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: Artem Shubovych <artem.shubovych@thetradedesk.com>
42 lines
1.1 KiB
Diff
42 lines
1.1 KiB
Diff
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index dc35b6f..628c649 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -3,6 +3,7 @@ project(squirrel VERSION 3.1 LANGUAGES C CXX)
|
|
|
|
option(DISABLE_STATIC "Avoid building/installing static libraries.")
|
|
option(LONG_OUTPUT_NAMES "Use longer names for binaries and libraries: squirrel3 (not sq).")
|
|
+option(BUILD_SQ "Build sq interpreter.")
|
|
|
|
if (NOT CMAKE_BUILD_TYPE)
|
|
set(CMAKE_BUILD_TYPE "Release")
|
|
@@ -35,15 +36,24 @@ endif()
|
|
|
|
add_subdirectory(squirrel)
|
|
add_subdirectory(sqstdlib)
|
|
-add_subdirectory(sq)
|
|
+
|
|
+if(BUILD_SQ)
|
|
+ add_subdirectory(sq)
|
|
+endif()
|
|
|
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
set(tgts)
|
|
if(NOT DISABLE_DYNAMIC)
|
|
- list(APPEND tgts squirrel sqstdlib sq)
|
|
+ list(APPEND tgts squirrel sqstdlib)
|
|
+ if(BUILD_SQ)
|
|
+ list(APPEND tgts sq)
|
|
+ endif()
|
|
endif()
|
|
if(NOT DISABLE_STATIC)
|
|
- list(APPEND tgts squirrel_static sqstdlib_static sq_static)
|
|
+ list(APPEND tgts squirrel_static sqstdlib_static)
|
|
+ if(BUILD_SQ)
|
|
+ list(APPEND tgts sq_static)
|
|
+ endif()
|
|
endif()
|
|
foreach(t ${tgts})
|
|
target_compile_definitions(${t} PUBLIC -D_SQ64)
|