linux apps compile gui with vcpkg

This commit is contained in:
Tal Regev 2022-04-23 12:40:15 +03:00
parent afd08ef3d8
commit f694ca6f12
No known key found for this signature in database
GPG Key ID: A421558E0F87AC82
3 changed files with 19 additions and 1 deletions

View File

@ -9,6 +9,8 @@
"default-features": false
},
"rappture",
"opencl"
"opencl",
"ftgl",
"freeglut"
]
}

View File

@ -10,6 +10,10 @@ if BUILD_WITH_GUI
export BUILD_WITH_GUI="yes"
endif
if BUILD_WITH_VCPKG
export BUILD_WITH_VCPKG="yes"
endif
## list the apps that should be build
## NOTE: nvcuda and wrappture need external libraries
SUBDIRS = condor example_app multi_thread sleeper worker wrapper

View File

@ -47,6 +47,18 @@ LIBUI = -lX11 -lXmu
LIBFTGL = -lftgl
LIBJPEG = -ljpeg
ifdef BUILD_WITH_VCPKG
BUILD_DIR = $(BOINC_DIR)/3rdParty/linux
VCPKG_DIR ?= $(BUILD_DIR)/vcpkg/installed/x64-linux
CXXFLAGS += \
-I$(VCPKG_DIR)/include \
-L$(VCPKG_DIR)/lib
LIBUI = -lX11 -lXmu -lXrandr -lXxf86vm -lXi
LIBFTGL = -lftgl -lfreetype -lpng -lbz2 -lbrotlidec-static -lbrotlienc-static -lbrotlicommon-static -lz
endif
ifdef BUILD_WITH_MINGW
LIBGLUT = -lfreeglut_static
LIBGLU = -lglu32