Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Enable regexp through PCRE.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikogenvik committed Aug 14, 2023
1 parent b6a15d5 commit 97c43de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cegui/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class CeguiConan(ConanFile):

def requirements(self):
self.requires("freetype/2.13.0")
self.requires("pcre/8.45")

def generate(self):
tc = CMakeToolchain(self)
Expand All @@ -47,7 +48,7 @@ def generate(self):
tc.variables['CEGUI_BUILD_LUA_MODULE'] = False
tc.variables['CEGUI_BUILD_APPLICATION_TEMPLATES'] = False
tc.variables['CEGUI_HAS_FREETYPE'] = True
tc.variables['CEGUI_HAS_PCRE_REGEX'] = False
tc.variables['CEGUI_HAS_PCRE_REGEX'] = True
tc.variables['CEGUI_BUILD_IMAGECODEC_FREEIMAGE'] = 'OFF'
tc.variables['CEGUI_BUILD_IMAGECODEC_SDL2'] = 'OFF'
tc.variables['CEGUI_BUILD_IMAGECODEC_STB'] = 'ON'
Expand Down Expand Up @@ -101,6 +102,8 @@ def build(self):

replace_in_file(self, "{0}/CMakeLists.txt".format(self.folders.source_folder), "find_package(Freetype)",
"find_package(Freetype CONFIG REQUIRED)\nlink_libraries(Freetype::Freetype)")
replace_in_file(self, "{0}/CMakeLists.txt".format(self.folders.source_folder), "find_package(PCRE)",
"find_package(PCRE CONFIG REQUIRED)\nlink_libraries(pcre::pcre)")
replace_in_file(self, "{0}/CMakeLists.txt".format(self.folders.source_folder),
"find_package(GTK2 COMPONENTS gtk)",
"#find_package(GTK2 COMPONENTS gtk)")
Expand Down

0 comments on commit 97c43de

Please sign in to comment.