2017-11-10 23:08:35 +00:00
|
|
|
set(PL_BOOT_SOURCES
|
2017-11-15 12:18:19 +00:00
|
|
|
absf.yap
|
|
|
|
arith.yap
|
|
|
|
arithpreds.yap
|
|
|
|
arrays.yap
|
|
|
|
atoms.yap
|
|
|
|
attributes.yap
|
|
|
|
boot.yap
|
|
|
|
bootlists.yap
|
2017-12-10 01:22:45 +00:00
|
|
|
bootutils.yap
|
2017-11-15 12:18:19 +00:00
|
|
|
callcount.yap
|
|
|
|
checker.yap
|
|
|
|
consult.yap
|
|
|
|
control.yap
|
|
|
|
corout.yap
|
|
|
|
dbload.yap
|
|
|
|
debug.yap
|
|
|
|
depth_bound.yap
|
|
|
|
dialect.yap
|
|
|
|
directives.yap
|
|
|
|
eam.yap
|
|
|
|
error.yap
|
|
|
|
errors.yap
|
|
|
|
eval.yap
|
|
|
|
flags.yap
|
|
|
|
grammar.yap
|
|
|
|
ground.yap
|
|
|
|
hacks.yap
|
2018-02-07 21:48:37 +00:00
|
|
|
init.yap
|
2017-11-15 12:18:19 +00:00
|
|
|
listing.yap
|
|
|
|
load_foreign.yap
|
|
|
|
messages.yap
|
|
|
|
meta.yap
|
|
|
|
modules.yap
|
|
|
|
newmod.yap
|
|
|
|
os.yap
|
|
|
|
pathconf.yap
|
|
|
|
preddecls.yap
|
|
|
|
preddyns.yap
|
|
|
|
preds.yap
|
|
|
|
profile.yap
|
|
|
|
protect.yap
|
|
|
|
qly.yap
|
|
|
|
save.yap
|
|
|
|
setof.yap
|
|
|
|
signals.yap
|
|
|
|
sort.yap
|
|
|
|
spy.yap
|
|
|
|
statistics.yap
|
|
|
|
strict_iso.yap
|
|
|
|
swi.yap
|
|
|
|
tabling.yap
|
|
|
|
threads.yap
|
2018-02-14 00:13:13 +00:00
|
|
|
top.yap
|
2017-11-15 12:18:19 +00:00
|
|
|
udi.yap
|
|
|
|
undefined.yap
|
|
|
|
utils.yap
|
|
|
|
yapor.yap
|
|
|
|
)
|
2014-12-15 12:27:07 +00:00
|
|
|
|
2017-11-15 12:18:19 +00:00
|
|
|
add_to_group(PL_BOOT_SOURCES pl_boot_library)
|
2017-05-02 04:07:23 +01:00
|
|
|
|
2018-02-07 21:48:37 +00:00
|
|
|
if (ANDROID)
|
|
|
|
add_custom_target(STARTUP
|
|
|
|
DEPENDS ${PL_BOOT_SOURCES}
|
|
|
|
)
|
|
|
|
file (INSTALL ${PL_BOOT_SOURCES} DESTINATION ${libpl}/pl)
|
2018-02-14 00:13:13 +00:00
|
|
|
elseif(CMAKE_CROSSCOMPILING)
|
2018-02-07 21:48:37 +00:00
|
|
|
add_custom_target(STARTUP ALL SOURCES
|
|
|
|
DEPENDS ${PL_BOOT_SOURCES}
|
|
|
|
)
|
|
|
|
else ()
|
2018-01-27 10:17:27 +00:00
|
|
|
add_custom_target(STARTUP ALL
|
2018-02-07 21:48:37 +00:00
|
|
|
DEPENDS ${CMAKE_TOP_BINARY_DIR}/${YAP_STARTUP}
|
|
|
|
)
|
|
|
|
add_custom_command(OUTPUT ${CMAKE_TOP_BINARY_DIR}/${YAP_STARTUP}
|
2018-02-14 00:13:13 +00:00
|
|
|
COMMAND yap-bin -B${CMAKE_SOURCE_DIR}/pl/boot.yap --output-saved-state=${CMAKE_TOP_BINARY_DIR}/${YAP_STARTUP}
|
2018-02-07 21:48:37 +00:00
|
|
|
VERBATIM
|
|
|
|
DEPENDS ${PL_BOOT_SOURCES} yap-bin
|
2017-11-15 12:18:19 +00:00
|
|
|
)
|
2016-07-31 16:43:31 +01:00
|
|
|
|
2018-02-07 21:48:37 +00:00
|
|
|
# install(CODE "execute_process(COMMAND ./yap -B
|
|
|
|
# WORKING_DIRECTORY ${CMAKE_TOP_BINARY_DIR})"
|
|
|
|
# DEPENDS Py4YAP ${PL_BOOT_SOURCES} yap-bin )
|
2018-01-05 16:57:38 +00:00
|
|
|
|
|
|
|
|
2018-02-07 21:48:37 +00:00
|
|
|
install(FILES ${CMAKE_TOP_BINARY_DIR}/${YAP_STARTUP}
|
|
|
|
DESTINATION ${YAP_INSTALL_DLLDIR}
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
install(FILES ${PL_BOOT_SOURCES}
|
|
|
|
DESTINATION ${libpl}/pl
|
|
|
|
)
|
|
|
|
install(FILES ../library/ypp.yap
|
|
|
|
DESTINATION ${libpl}/library
|
|
|
|
)
|