1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
Description: Allow building of "portable" EEL2
required for non amd64 architectures
Author: IOhannes m zmölnig
Bug: https://github.com/asb2m10/jsusfx/issues/35
Last-Update: 2020-01-08
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- jsusfx.orig/src/CMakeLists.txt
+++ jsusfx/src/CMakeLists.txt
@@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 2.6)
project(jsusfx)
+option(PORTABLE "build a portable eel2")
+if (PORTABLE)
+ add_definitions(-DEEL_TARGET_PORTABLE=1)
+endif()
+
# -- JSUSFX library --
set(sources
@@ -27,7 +32,7 @@
add_library(jsusfx ${sources} ${headers})
else()
# Linux x64
- if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+ if ((NOT PORTABLE) AND (CMAKE_SIZEOF_VOID_P EQUAL 8))
add_custom_command(
OUTPUT ${PROJECT_SOURCE_DIR}/WDL/eel2/asm-nseel-x64.o
COMMAND php a2x64.php elf64
@@ -40,7 +45,7 @@
endif()
endif()
else()
- if (WIN32)
+ if (PORTABLE OR WIN32)
add_library(jsusfx ${sources} ${headers})
else()
# MacOS, 64-bit always
|