Bazel 같은거 매우 힘들다. 일단 시스템 자체가 너무 커서 -_-;; 접근하고 싶지 않다. 문법도 뭔가 거부감이 드는 것 같다?
meson.build를 만든다.
project('libplacer', 'cpp')
cpp = meson.get_compiler('cpp')
root = meson.source_root()
zlib = cpp.find_library('z')
eastl_inc = include_directories('../EASTL/include',
'../EASTL/test/packages/EABase/include/Common')
eastl_lib = cpp.find_library('EASTL', dirs : root + '/../bld.eastl')
zipper_lib = cpp.find_library('Zipper-static', dirs : root + '/../zipper/bld')
zipper_inc = include_directories('../zipper/zipper')
placer = static_library('placer',
['eastl_new.cpp', 'graph.cpp', 'ucla_reader.cpp'],
include_directories : [eastl_inc, zipper_inc],
dependencies : [eastl_lib, zipper_lib, zlib])
executable('a.out', 'test.cpp',
link_with : placer,
include_directories : [eastl_inc, zipper_inc],
dependencies : [eastl_lib, zipper_lib, zlib])
alL: builddir do_build
builddir:
meson builddir
do_build:
cd builddir && ninja
clean:
rm -rf builddir
distclean:
rm -rf builddir