ENH: Isolated sr_port files that are 64 bits specific.

A couple of files in the sr_port directory are not intended to
be used in 32 bits platforms.
This commit is contained in:
Luis Ibanez 2012-02-19 10:43:42 -05:00
parent f445b8d0c5
commit 45896c02f9
1 changed files with 51 additions and 5 deletions

View File

@ -1,16 +1,34 @@
include_directories(
#
# Select headers for 32 bits
#
if(CMAKE_C_SIZEOF_DATA_PTR EQUAL 4)
include_directories(
${fis-gtm_SOURCE_DIR}/sr_i386
)
endif()
#
# Select headers for 64 bits
#
if(CMAKE_C_SIZEOF_DATA_PTR EQUAL 8)
include_directories(
${fis-gtm_SOURCE_DIR}/sr_x86_64
)
endif()
include_directories(
${fis-gtm_SOURCE_DIR}/sr_unix
${fis-gtm_SOURCE_DIR}/sr_linux
${fis-gtm_SOURCE_DIR}/pro
${fis-gtm_SOURCE_DIR}/pro/obj
${fis-gtm_SOURCE_DIR}/sr_port_cm
${fis-gtm_SOURCE_DIR}/sr_port
${fis-gtm_SOURCE_DIR}/sr_x86_64
${fis-gtm_SOURCE_DIR}/sr_x86_regs
)
add_library(gtm_port
set(GTM_PORT_SRC_C
act_in_gvt.c
actuallist.c
add_atom.c
@ -67,7 +85,6 @@ add_library(gtm_port
cli_get_str_ele.c
cli_port.c
cmd.c
code_gen.c
coerce.c
collseq.c
comp_fini.c
@ -161,7 +178,6 @@ add_library(gtm_port
ecode_get.c
ecode_init.c
ecode_set.c
emit_code.c
entryref.c
err_check.c
eval_expr.c
@ -1148,3 +1164,33 @@ add_library(gtm_port
zwr2format.c
zyerror_init.c
)
#
# Select sources specific for 32 bits
#
if(CMAKE_C_SIZEOF_DATA_PTR EQUAL 4)
set(GTM_PORT_SRC_C
${GTM_PORT_SRC_C}
)
endif()
#
# Select sources specific for 64 bits
#
if(CMAKE_C_SIZEOF_DATA_PTR EQUAL 8)
set(GTM_PORT_SRC_C
${GTM_PORT_SRC_C}
emit_code.c
code_gen.c
)
endif()
add_library(gtm_port
${GTM_PORT_SRC_C}
)