mangoapp: compile using static mangohud_library

pull/882/head
FlightlessMango 1 year ago
parent 7b248efef7
commit e3995ffcbf

@ -17,6 +17,7 @@
#include "string_utils.h" #include "string_utils.h"
#include "app/mangoapp.h" #include "app/mangoapp.h"
#include <IconsForkAwesome.h> #include <IconsForkAwesome.h>
#include "version.h"
#define CHAR_CELSIUS "\xe2\x84\x83" #define CHAR_CELSIUS "\xe2\x84\x83"
#define CHAR_FAHRENHEIT "\xe2\x84\x89" #define CHAR_FAHRENHEIT "\xe2\x84\x89"

@ -7,6 +7,7 @@
#include "config.h" #include "config.h"
#include "file_utils.h" #include "file_utils.h"
#include "string_utils.h" #include "string_utils.h"
#include "version.h"
using namespace std; using namespace std;

@ -159,7 +159,7 @@ link_args = cc.get_supported_link_arguments(['-Wl,-Bsymbolic-functions', '-Wl,-z
# meson fails to check version-script so just force add # meson fails to check version-script so just force add
link_args += '-Wl,--version-script,@0@'.format(join_paths(meson.current_source_dir(), 'mangohud.version')) link_args += '-Wl,--version-script,@0@'.format(join_paths(meson.current_source_dir(), 'mangohud.version'))
vklayer_mesa_overlay = shared_library( mangohud_library = both_libraries(
'MangoHud', 'MangoHud',
mangohud_version, mangohud_version,
util_files, util_files,
@ -193,6 +193,7 @@ vklayer_mesa_overlay = shared_library(
install_dir : libdir_mangohud, install_dir : libdir_mangohud,
install : true install : true
) )
if is_unixy if is_unixy
mangohud_dlsym = shared_library( mangohud_dlsym = shared_library(
'MangoHud_dlsym', 'MangoHud_dlsym',
@ -222,11 +223,6 @@ if get_option('mangoapp')
pre_args += '-DMANGOAPP' pre_args += '-DMANGOAPP'
mangoapp = executable( mangoapp = executable(
'mangoapp', 'mangoapp',
mangohud_version,
util_files,
vk_enum_to_str,
vklayer_files,
opengl_files,
files( files(
'app/main.cpp', 'app/main.cpp',
), ),
@ -247,10 +243,11 @@ if get_option('mangoapp')
dbus_dep, dbus_dep,
dep_x11, dep_x11,
glfw3_dep, glfw3_dep,
json_dep, json_dep
], ],
include_directories : [inc_common], include_directories : [inc_common],
install_tag : 'mangoapp', install_tag : 'mangoapp',
link_with: mangohud_library.get_static_lib(),
link_args : link_args, link_args : link_args,
install : true install : true
) )

@ -7,7 +7,6 @@
#include <vector> #include <vector>
#include <deque> #include <deque>
#include <imgui.h> #include <imgui.h>
#include "version.h"
#include "overlay_params.h" #include "overlay_params.h"
#include "hud_elements.h" #include "hud_elements.h"
#include "engine_types.h" #include "engine_types.h"

Loading…
Cancel
Save