mirror of https://gitlab.com/cppit/jucipp
12 changed files with 187 additions and 63 deletions
@ -0,0 +1,5 @@
|
||||
#include <iostream> |
||||
|
||||
int main() { |
||||
std::cout << "Hello World\n"; |
||||
} |
||||
@ -0,0 +1 @@
|
||||
executable('hello2', 'main.cpp', cpp_args: compiler_args) |
||||
@ -0,0 +1,5 @@
|
||||
#include <iostream> |
||||
|
||||
int main() { |
||||
std::cout << "Hello World\n"; |
||||
} |
||||
@ -0,0 +1,27 @@
|
||||
[ |
||||
{ |
||||
"directory": "jucipp/tests/meson_old_test_files/build", |
||||
"command": "c++ '-Ihello_lib@sta' '-I..' '-I.' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-std=c++11' '-Wall' '-Wextra' '-O0' '-g' '-MMD' '-MQ' 'hello_lib@sta/main.cpp.o' '-MF' 'hello_lib@sta/main.cpp.o.d' -o 'hello_lib@sta/main.cpp.o' -c ../main.cpp", |
||||
"file": "../main.cpp" |
||||
}, |
||||
{ |
||||
"directory": "jucipp/tests/meson_old_test_files/build", |
||||
"command": "c++ '-Ihello@exe' '-I..' '-I.' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-std=c++11' '-Wall' '-Wextra' '-O0' '-g' '-MMD' '-MQ' 'hello@exe/main.cpp.o' '-MF' 'hello@exe/main.cpp.o.d' -o 'hello@exe/main.cpp.o' -c ../main.cpp", |
||||
"file": "../main.cpp" |
||||
}, |
||||
{ |
||||
"directory": "jucipp/tests/meson_old_test_files/build", |
||||
"command": "c++ '-Ia_subdir/hello2@exe' '-I../a_subdir' '-Ia_subdir' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-std=c++11' '-Wall' '-Wextra' '-O0' '-g' '-MMD' '-MQ' 'a_subdir/hello2@exe/main.cpp.o' '-MF' 'a_subdir/hello2@exe/main.cpp.o.d' -o 'a_subdir/hello2@exe/main.cpp.o' -c ../a_subdir/main.cpp", |
||||
"file": "../a_subdir/main.cpp" |
||||
}, |
||||
{ |
||||
"directory": "jucipp/tests/meson_old_test_files/build", |
||||
"command": "c++ '-Ianother_executable@exe' '-I..' '-I.' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-std=c++11' '-Wall' '-Wextra' '-O0' '-g' '-MMD' '-MQ' 'another_executable@exe/another_file.cpp.o' '-MF' 'another_executable@exe/another_file.cpp.o.d' -o 'another_executable@exe/another_file.cpp.o' -c ../another_file.cpp", |
||||
"file": "../another_file.cpp" |
||||
}, |
||||
{ |
||||
"directory": "jucipp/tests/meson_old_test_files/build", |
||||
"command": "'te\\'s\"t' te\\ st test te\\\\st te\\\\\\\\st", |
||||
"file": "../parse_test.cpp" |
||||
} |
||||
] |
||||
@ -0,0 +1,5 @@
|
||||
#include <iostream> |
||||
|
||||
int main() { |
||||
std::cout << "Hello World\n"; |
||||
} |
||||
@ -0,0 +1,11 @@
|
||||
project('hello.world', 'cpp') |
||||
|
||||
compiler_args = ['-std=c++11', '-Wall', '-Wextra'] |
||||
|
||||
static_library('hello_lib', 'main.cpp', cpp_args: compiler_args) |
||||
|
||||
executable('hello', 'main.cpp', cpp_args: compiler_args) |
||||
|
||||
executable('another_executable', 'another_file.cpp', cpp_args: compiler_args) |
||||
|
||||
subdir('a_subdir') |
||||
@ -1,27 +1,26 @@
|
||||
[ |
||||
{ |
||||
"directory": "jucipp/tests/meson_test_files/build", |
||||
"command": "c++ '-Ihello_lib@sta' '-I..' '-I.' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-std=c++11' '-Wall' '-Wextra' '-O0' '-g' '-MMD' '-MQ' 'hello_lib@sta/main.cpp.o' '-MF' 'hello_lib@sta/main.cpp.o.d' -o 'hello_lib@sta/main.cpp.o' -c ../main.cpp", |
||||
"file": "../main.cpp" |
||||
"directory": "/home/test/meson_test_files/build", |
||||
"command": "c++ -Ilibhello_lib.a.p -I. -I.. -Xclang -fcolor-diagnostics -pipe -std=c++11 -Wall -Wextra -MD -MQ libhello_lib.a.p/main.cpp.o -MF libhello_lib.a.p/main.cpp.o.d -o libhello_lib.a.p/main.cpp.o -c ../main.cpp", |
||||
"file": "../main.cpp", |
||||
"output": "libhello_lib.a.p/main.cpp.o" |
||||
}, |
||||
{ |
||||
"directory": "jucipp/tests/meson_test_files/build", |
||||
"command": "c++ '-Ihello@exe' '-I..' '-I.' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-std=c++11' '-Wall' '-Wextra' '-O0' '-g' '-MMD' '-MQ' 'hello@exe/main.cpp.o' '-MF' 'hello@exe/main.cpp.o.d' -o 'hello@exe/main.cpp.o' -c ../main.cpp", |
||||
"file": "../main.cpp" |
||||
"directory": "/home/test/meson_test_files/build", |
||||
"command": "c++ -Ihello.p -I. -I.. -Xclang -fcolor-diagnostics -pipe -std=c++11 -Wall -Wextra -MD -MQ hello.p/main.cpp.o -MF hello.p/main.cpp.o.d -o hello.p/main.cpp.o -c ../main.cpp", |
||||
"file": "../main.cpp", |
||||
"output": "hello.p/main.cpp.o" |
||||
}, |
||||
{ |
||||
"directory": "jucipp/tests/meson_test_files/build", |
||||
"command": "c++ '-Ia_subdir/hello2@exe' '-I../a_subdir' '-Ia_subdir' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-std=c++11' '-Wall' '-Wextra' '-O0' '-g' '-MMD' '-MQ' 'a_subdir/hello2@exe/main.cpp.o' '-MF' 'a_subdir/hello2@exe/main.cpp.o.d' -o 'a_subdir/hello2@exe/main.cpp.o' -c ../a_subdir/main.cpp", |
||||
"file": "../a_subdir/main.cpp" |
||||
"directory": "/home/test/meson_test_files/build", |
||||
"command": "c++ -Ianother_executable.p -I. -I.. -Xclang -fcolor-diagnostics -pipe -std=c++11 -Wall -Wextra -MD -MQ another_executable.p/another_file.cpp.o -MF another_executable.p/another_file.cpp.o.d -o another_executable.p/another_file.cpp.o -c ../another_file.cpp", |
||||
"file": "../another_file.cpp", |
||||
"output": "another_executable.p/another_file.cpp.o" |
||||
}, |
||||
{ |
||||
"directory": "jucipp/tests/meson_test_files/build", |
||||
"command": "c++ '-Ianother_executable@exe' '-I..' '-I.' '-Wall' '-Winvalid-pch' '-Wnon-virtual-dtor' '-std=c++11' '-Wall' '-Wextra' '-O0' '-g' '-MMD' '-MQ' 'another_executable@exe/another_file.cpp.o' '-MF' 'another_executable@exe/another_file.cpp.o.d' -o 'another_executable@exe/another_file.cpp.o' -c ../another_file.cpp", |
||||
"file": "../another_file.cpp" |
||||
}, |
||||
{ |
||||
"directory": "jucipp/tests/meson_test_files/build", |
||||
"command": "'te\\'s\"t' te\\ st test te\\\\st te\\\\\\\\st", |
||||
"file": "../parse_test.cpp" |
||||
"directory": "/home/test/meson_test_files/build", |
||||
"command": "c++ -Ia_subdir/hello2.p -Ia_subdir -I../a_subdir -Xclang -fcolor-diagnostics -pipe -std=c++11 -Wall -Wextra -MD -MQ a_subdir/hello2.p/main.cpp.o -MF a_subdir/hello2.p/main.cpp.o.d -o a_subdir/hello2.p/main.cpp.o -c ../a_subdir/main.cpp", |
||||
"file": "../a_subdir/main.cpp", |
||||
"output": "a_subdir/hello2.p/main.cpp.o" |
||||
} |
||||
] |
||||
|
||||
@ -0,0 +1 @@
|
||||
[{"name": "hello_lib", "id": "hello_lib@sta", "type": "static library", "defined_in": "/home/test/meson_test_files/meson.build", "filename": ["/home/test/meson_test_files/build/libhello_lib.a"], "build_by_default": true, "target_sources": [{"language": "cpp", "compiler": ["c++"], "parameters": ["-I/home/test/meson_test_files/build/libhello_lib.a.p", "-I/home/test/meson_test_files/build", "-I/home/test/meson_test_files", "-Xclang", "-fcolor-diagnostics", "-pipe", "-std=c++11", "-Wall", "-Wextra"], "sources": ["/home/test/meson_test_files/main.cpp"], "generated_sources": []}], "subproject": null, "installed": false}, {"name": "hello", "id": "hello@exe", "type": "executable", "defined_in": "/home/test/meson_test_files/meson.build", "filename": ["/home/test/meson_test_files/build/hello"], "build_by_default": true, "target_sources": [{"language": "cpp", "compiler": ["c++"], "parameters": ["-I/home/test/meson_test_files/build/hello.p", "-I/home/test/meson_test_files/build", "-I/home/test/meson_test_files", "-Xclang", "-fcolor-diagnostics", "-pipe", "-std=c++11", "-Wall", "-Wextra"], "sources": ["/home/test/meson_test_files/main.cpp"], "generated_sources": []}], "subproject": null, "installed": false}, {"name": "another_executable", "id": "another_executable@exe", "type": "executable", "defined_in": "/home/test/meson_test_files/meson.build", "filename": ["/home/test/meson_test_files/build/another_executable"], "build_by_default": true, "target_sources": [{"language": "cpp", "compiler": ["c++"], "parameters": ["-I/home/test/meson_test_files/build/another_executable.p", "-I/home/test/meson_test_files/build", "-I/home/test/meson_test_files", "-Xclang", "-fcolor-diagnostics", "-pipe", "-std=c++11", "-Wall", "-Wextra"], "sources": ["/home/test/meson_test_files/another_file.cpp"], "generated_sources": []}], "subproject": null, "installed": false}, {"name": "hello2", "id": "f94d950@@hello2@exe", "type": "executable", "defined_in": "/home/test/meson_test_files/a_subdir/meson.build", "filename": ["/home/test/meson_test_files/build/a_subdir/hello2"], "build_by_default": true, "target_sources": [{"language": "cpp", "compiler": ["c++"], "parameters": ["-I/home/test/meson_test_files/build/a_subdir/hello2.p", "-I/home/test/meson_test_files/build/a_subdir", "-I/home/test/meson_test_files/a_subdir", "-Xclang", "-fcolor-diagnostics", "-pipe", "-std=c++11", "-Wall", "-Wextra"], "sources": ["/home/test/meson_test_files/a_subdir/main.cpp"], "generated_sources": []}], "subproject": null, "installed": false}] |
||||
Loading…
Reference in new issue