From efce5b6bd5c9d4f8214a71e0f7a7c35751710a4c Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 8 Nov 2021 01:17:11 +0800 Subject: + tolua + lpeg --- ThirdParty/toluapp/src/tests/SCsub | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ThirdParty/toluapp/src/tests/SCsub (limited to 'ThirdParty/toluapp/src/tests/SCsub') diff --git a/ThirdParty/toluapp/src/tests/SCsub b/ThirdParty/toluapp/src/tests/SCsub new file mode 100644 index 0000000..2a2fb26 --- /dev/null +++ b/ThirdParty/toluapp/src/tests/SCsub @@ -0,0 +1,18 @@ +Import('env') +env_tests = env.Copy() + +env_tests.LuaBinding('tclassbind.cpp', 'tclass.pkg', 'tclass', use_own=1, use_typeid=1) + +env_tests.Append(CXXFLAGS='-DTOLUA_API="extern \\\"C\\\""') + +test_class_so = env_tests.SharedLibrary('tclass', ['tclassbind.cpp'], + LIBS=['$tolua_lib']+env['LIBS'], ) + +env_tests.Append(LIBPATH=".") + +test_class = env_tests.Program('tclass', ['tclass.cpp'], + LIBS=env['LIBS']+['tclass']+['$tolua_lib'], ) + + + +env.test_targets = [test_class] -- cgit v1.1-26-g67d0