Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

Commit 42c3335

Browse files
committed
Allow building of "portable" EEL2
Closes: #35 Last-Update: 2020-01-08 required for non amd64 architectures Last-Update: 2020-01-08 Gbp-Pq: Name portable_eel.patch
1 parent 1f635e0 commit 42c3335

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
cmake_minimum_required(VERSION 2.6)
22

33
project(jsusfx)
4+
option(PORTABLE "build a portable eel2")
5+
if (PORTABLE)
6+
add_definitions(-DEEL_TARGET_PORTABLE=1)
7+
endif()
8+
49

510
# -- JSUSFX library --
611
set(sources
@@ -27,7 +32,7 @@ if (UNIX AND NOT APPLE)
2732
add_library(jsusfx ${sources} ${headers})
2833
else()
2934
# Linux x64
30-
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
35+
if ((NOT PORTABLE) AND (CMAKE_SIZEOF_VOID_P EQUAL 8))
3136
add_custom_command(
3237
OUTPUT ${PROJECT_SOURCE_DIR}/WDL/eel2/asm-nseel-x64.o
3338
COMMAND php a2x64.php elf64
@@ -40,7 +45,7 @@ if (UNIX AND NOT APPLE)
4045
endif()
4146
endif()
4247
else()
43-
if (WIN32)
48+
if (PORTABLE OR WIN32)
4449
add_library(jsusfx ${sources} ${headers})
4550
else()
4651
# MacOS, 64-bit always

0 commit comments

Comments
 (0)