mirror of https://github.com/BOINC/boinc.git
linux apps compile gui with vcpkg
This commit is contained in:
parent
afd08ef3d8
commit
f694ca6f12
|
@ -9,6 +9,8 @@
|
|||
"default-features": false
|
||||
},
|
||||
"rappture",
|
||||
"opencl"
|
||||
"opencl",
|
||||
"ftgl",
|
||||
"freeglut"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue