header cleanup
This commit is contained in:
38
meson.build
38
meson.build
@@ -96,13 +96,6 @@ endif
|
||||
if host_machine.system() == 'windows'
|
||||
deps += cc.find_library('d3d11')
|
||||
deps += cc.find_library('ws2_32', required:true)
|
||||
# For Windows, you may need to install OpenBLAS or Intel MKL
|
||||
# and adjust these library names accordingly
|
||||
# deps += cc.find_library('openblas', required:false)
|
||||
# if not cc.find_library('openblas', required:false).found()
|
||||
# deps += cc.find_library('blas', required:false)
|
||||
# deps += cc.find_library('lapacke', required:false)
|
||||
# endif
|
||||
deps += cc.find_library('dbghelp')
|
||||
deps += cc.find_library('winmm')
|
||||
deps += cc.find_library('setupapi')
|
||||
@@ -177,15 +170,6 @@ endif
|
||||
|
||||
deps += dependency('threads')
|
||||
|
||||
# Try to find system-installed chipmunk first
|
||||
chipmunk_dep = dependency('chipmunk', static: true, required: false)
|
||||
if not chipmunk_dep.found()
|
||||
message('⚙ System chipmunk not found, building subproject...')
|
||||
deps += dependency('chipmunk', static:true)
|
||||
else
|
||||
deps += chipmunk_dep
|
||||
endif
|
||||
|
||||
# Try to find system-installed curl first
|
||||
curl_dep = dependency('libcurl', static: true, required: false)
|
||||
if not curl_dep.found()
|
||||
@@ -339,14 +323,10 @@ endforeach
|
||||
|
||||
if host_machine.system() == 'windows'
|
||||
exe_ext = '.exe'
|
||||
link += '-Wl,--export-all-symbols'
|
||||
else
|
||||
exe_ext = ''
|
||||
endif
|
||||
|
||||
strip_enabled = ['release', 'minsize'].contains(get_option('buildtype'))
|
||||
|
||||
if strip_enabled
|
||||
add_project_link_arguments('-s', language: ['c', 'cpp'])
|
||||
link += '-Wl,-export_dynamic'
|
||||
endif
|
||||
|
||||
cell_bin = executable('cell_bin', sources,
|
||||
@@ -361,10 +341,18 @@ cell_dep = declare_dependency(
|
||||
link_with: cell_bin
|
||||
)
|
||||
|
||||
cell_so = both_libraries(
|
||||
'cell',
|
||||
sources,
|
||||
include_directories: includers,
|
||||
dependencies: deps,
|
||||
install : true,
|
||||
)
|
||||
|
||||
# Create core.zip from scripts folder
|
||||
qop_target = custom_target('core.qop',
|
||||
output: 'core.qop',
|
||||
command: ['sh', '-c', ' mkdir -p .cell && cell qopconv -d ' + meson.project_source_root() / 'scripts . core.qop'],
|
||||
command: ['sh', '-c', ' qopconv -d ' + meson.project_source_root() / 'scripts . core.qop'],
|
||||
build_by_default: true,
|
||||
build_always_stale: true
|
||||
)
|
||||
@@ -388,12 +376,8 @@ install_headers('source/cell.h', 'source/jsffi.h')
|
||||
install_headers('source/blob.h')
|
||||
install_headers('source/quickjs.h')
|
||||
install_headers('source/qjs_macros.h')
|
||||
install_headers('source/qjs_blob.h')
|
||||
install_headers('source/qjs_common.h')
|
||||
install_headers('source/qjs_actor.h')
|
||||
install_headers('source/qjs_fd.h')
|
||||
install_headers('source/qjs_os.h')
|
||||
install_headers('source/qjs_time.h')
|
||||
install_headers('source/HandmadeMath.h')
|
||||
install_headers('source/render.h')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user