mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Compile c files to separate directories. Add compressed library to example test project.
This commit is contained in:
@@ -2,6 +2,7 @@ module hello_world;
|
||||
import std;
|
||||
import bar;
|
||||
import clib;
|
||||
import clib2;
|
||||
|
||||
fn int test_doubler(int x) @if(env::WIN32) => x * x;
|
||||
extern fn int test_doubler(int) @if(!env::WIN32);
|
||||
@@ -14,5 +15,6 @@ fn int main()
|
||||
printf("Hello double: %d\n", test_doubler(11));
|
||||
if ($feature(ABCD)) io::printn("ABCD");
|
||||
clib::hello_from_c();
|
||||
clib2::hello_from_c_zip();
|
||||
return 0;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"provides" : "clib",
|
||||
"c-sources" : ["hello.c"],
|
||||
"c-sources" : ["hello2.c"],
|
||||
"targets" : {
|
||||
"macos-x64" : {
|
||||
},
|
||||
|
||||
BIN
resources/testproject/lib/clib2.c3l
Normal file
BIN
resources/testproject/lib/clib2.c3l
Normal file
Binary file not shown.
@@ -12,7 +12,7 @@
|
||||
"./**"
|
||||
],
|
||||
"dependency-search-paths": [ "./lib" ],
|
||||
"dependencies": ["clib"],
|
||||
"dependencies": ["clib", "clib2"],
|
||||
|
||||
"features": ["ABCD"],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user