@@ -2,7 +2,9 @@
using namespace std;
+IMPL_API void test();
+
int main(int argc, char** argv) {
- cout << "test1" << endl;
+ cout << TEST << endl;
return 0;
}
@@ -3,7 +3,7 @@
- cout << "test2" << endl;
@@ -5,4 +5,6 @@ for name in ${tests}; do
target "${name}"
set_kind "binary"
add_files "${name}.cpp"
+ add_defines "TEST=\"${name}\""
+ add_cxflags "-DIMPL_API=\"extern \\\"C\\\" \""
done