mirror of
https://github.com/mborgerson/xemu.git
synced 2025-12-01 16:10:01 +00:00
tomlplusplus: Allow using system library
This commit is contained in:
committed by
mborgerson
parent
9d2d8691b5
commit
482b2ea31d
Submodule genconfig updated: 5da3fd2463...44bab849ce
@ -838,9 +838,9 @@ if 'CONFIG_OPENGL' in config_host
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
tomllib = static_library('tomlpp', sources: files('toml.cpp'),
|
tomllib = static_library('tomlpp', sources: files('toml.cpp'),
|
||||||
include_directories: 'tomlplusplus')
|
include_directories: 'tomlplusplus/include')
|
||||||
toml = declare_dependency(compile_args: ['-DTOML_HEADER_ONLY=0'],
|
toml = declare_dependency(compile_args: ['-DTOML_HEADER_ONLY=0'],
|
||||||
include_directories: 'tomlplusplus',
|
include_directories: 'tomlplusplus/include',
|
||||||
link_with: tomllib)
|
link_with: tomllib)
|
||||||
|
|
||||||
genconfig = declare_dependency(include_directories: 'genconfig')
|
genconfig = declare_dependency(include_directories: 'genconfig')
|
||||||
|
|||||||
2
toml.cpp
2
toml.cpp
@ -1,3 +1,3 @@
|
|||||||
#define TOML_HEADER_ONLY 0
|
#define TOML_HEADER_ONLY 0
|
||||||
#define TOML_IMPLEMENTATION
|
#define TOML_IMPLEMENTATION
|
||||||
#include <toml.hpp>
|
#include <toml++/toml.h>
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <toml.hpp>
|
#include <toml++/toml.h>
|
||||||
#include <cnode.h>
|
#include <cnode.h>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|||||||
Reference in New Issue
Block a user