mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-27 15:03:36 +00:00
final commit, removed scripts and reset meson.build
This commit is contained in:
parent
af16088015
commit
da3d69b5bd
6
debug.sh
6
debug.sh
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
CC=clang CXX=clang++ meson compile -C build && \
|
||||
cd build/Minecraft.Client/ && \
|
||||
gdb -tui ./Minecraft.Client && \
|
||||
cd ../..
|
||||
16
meson.build
16
meson.build
|
|
@ -12,9 +12,6 @@ pymod = import('python')
|
|||
python = pymod.find_installation('python3', required: true)
|
||||
|
||||
cc = meson.get_compiler('cpp')
|
||||
buildtype = get_option('buildtype')
|
||||
#langs cant sadly be set before calling project
|
||||
langs = ['cpp', 'c']
|
||||
|
||||
# system deps
|
||||
gl_dep = dependency('gl')
|
||||
|
|
@ -24,19 +21,6 @@ png_dep = dependency('libpng')
|
|||
thread_dep = dependency('threads')
|
||||
dl_dep = cc.find_library('dl')
|
||||
|
||||
if buildtype.startswith('debug')
|
||||
strAsan = '-fsanitize=address'
|
||||
strLsan = '-fsanitize=leak'
|
||||
if cc.has_argument(strAsan)
|
||||
add_project_arguments(strAsan, language: langs)
|
||||
add_project_link_arguments(strAsan, language: langs)
|
||||
endif
|
||||
if cc.has_argument(strLsan)
|
||||
add_project_arguments(strLsan, language: langs)
|
||||
add_project_link_arguments(strLsan, language: langs)
|
||||
endif
|
||||
endif
|
||||
|
||||
# compile flags (chagne ts juicey)
|
||||
global_cpp_args = [
|
||||
'-fpermissive',
|
||||
|
|
|
|||
Loading…
Reference in a new issue