Move files around
Sample main.cpp is now into examples/greet
This commit is contained in:
parent
a3c1199da9
commit
65189a5575
13 changed files with 30 additions and 13 deletions
|
@ -1,3 +1,20 @@
|
||||||
|
/* Copyright 2020, Michele Santullo
|
||||||
|
* This file is part of wrenpp.
|
||||||
|
*
|
||||||
|
* Wrenpp is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Wrenpp is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with wrenpp. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "wrenpp/vm_fun.hpp"
|
#include "wrenpp/vm_fun.hpp"
|
||||||
#include "wrenpp/def_configuration.hpp"
|
#include "wrenpp/def_configuration.hpp"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
5
examples/greet/meson.build
Normal file
5
examples/greet/meson.build
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
executable('greet',
|
||||||
|
'main.cpp',
|
||||||
|
dependencies: wrenpp_dep,
|
||||||
|
install: false,
|
||||||
|
)
|
|
@ -1 +1,2 @@
|
||||||
subdir('dieroll')
|
subdir('dieroll')
|
||||||
|
subdir('greet')
|
||||||
|
|
20
meson.build
20
meson.build
|
@ -49,13 +49,13 @@ project_config_file = configure_file(
|
||||||
|
|
||||||
wrenpp = library(meson.project_name(),
|
wrenpp = library(meson.project_name(),
|
||||||
project_config_file,
|
project_config_file,
|
||||||
'src/wren/vm.cpp',
|
'src/vm.cpp',
|
||||||
'src/wren/configuration.cpp',
|
'src/configuration.cpp',
|
||||||
'src/wren/def_configuration.cpp',
|
'src/def_configuration.cpp',
|
||||||
'src/wren/dynafunc_maker.cpp',
|
'src/dynafunc_maker.cpp',
|
||||||
'src/wren/dynafunc_' + arch + '_' + os + '.S',
|
'src/dynafunc_' + arch + '_' + os + '.S',
|
||||||
'src/wren/handle.cpp',
|
'src/handle.cpp',
|
||||||
'src/wren/vm_fun.cpp',
|
'src/vm_fun.cpp',
|
||||||
dependencies: [wren_dep],
|
dependencies: [wren_dep],
|
||||||
include_directories: public_incl,
|
include_directories: public_incl,
|
||||||
install: true,
|
install: true,
|
||||||
|
@ -66,11 +66,5 @@ wrenpp_dep = declare_dependency(
|
||||||
)
|
)
|
||||||
|
|
||||||
if get_option('build_examples')
|
if get_option('build_examples')
|
||||||
executable(meson.project_name() + 'sample',
|
|
||||||
'src/main.cpp',
|
|
||||||
dependencies: wrenpp_dep,
|
|
||||||
install: false,
|
|
||||||
)
|
|
||||||
|
|
||||||
subdir('examples')
|
subdir('examples')
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue