diff options
Diffstat (limited to 'meson/test cases/common/152 index customtarget/subdir')
-rw-r--r-- | meson/test cases/common/152 index customtarget/subdir/foo.c | 22 | ||||
-rw-r--r-- | meson/test cases/common/152 index customtarget/subdir/meson.build | 19 |
2 files changed, 41 insertions, 0 deletions
diff --git a/meson/test cases/common/152 index customtarget/subdir/foo.c b/meson/test cases/common/152 index customtarget/subdir/foo.c new file mode 100644 index 000000000..c620a1183 --- /dev/null +++ b/meson/test cases/common/152 index customtarget/subdir/foo.c @@ -0,0 +1,22 @@ +/* Copyright © 2017 Intel Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "gen.h" + +int main(void) { + char buf[50]; + stringify(10, buf); + return 0; +} diff --git a/meson/test cases/common/152 index customtarget/subdir/meson.build b/meson/test cases/common/152 index customtarget/subdir/meson.build new file mode 100644 index 000000000..47bcd322a --- /dev/null +++ b/meson/test cases/common/152 index customtarget/subdir/meson.build @@ -0,0 +1,19 @@ +# Copyright © 2017 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +foo = executable( + 'foo', + ['foo.c', gen[0], gen[1]], + c_args : '-DWORKS', +) |