Do not try to use PHP on HardenedBSD.
GitOrigin-RevId: 9418dd2c90cc35a930342376bd65711428c29333
This commit is contained in:
parent
d83d8a4977
commit
e0f27dd9c0
@ -21,6 +21,9 @@ message(STATUS "Found Java: ${Java_JAVAC_EXECUTABLE} ${Java_JAVADOC_EXECUTABLE}"
|
|||||||
|
|
||||||
# Generating TdApi.java
|
# Generating TdApi.java
|
||||||
find_program(PHP_EXECUTABLE php)
|
find_program(PHP_EXECUTABLE php)
|
||||||
|
if ((CMAKE_SYSTEM_NAME MATCHES "FreeBSD") AND (CMAKE_SYSTEM_VERSION MATCHES "HBSD"))
|
||||||
|
set(PHP_EXECUTABLE "PHP_EXECUTABLE-NOTFOUND")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(TD_API_JAVA_PACKAGE "org/drinkless/tdlib")
|
set(TD_API_JAVA_PACKAGE "org/drinkless/tdlib")
|
||||||
set(TD_API_JAVA_PATH ${CMAKE_CURRENT_SOURCE_DIR})
|
set(TD_API_JAVA_PATH ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
@ -96,6 +96,10 @@ set(TL_GENERATE_JSON_SOURCE
|
|||||||
if (NOT CMAKE_CROSSCOMPILING)
|
if (NOT CMAKE_CROSSCOMPILING)
|
||||||
find_program(PHP_EXECUTABLE php)
|
find_program(PHP_EXECUTABLE php)
|
||||||
|
|
||||||
|
if ((CMAKE_SYSTEM_NAME MATCHES "FreeBSD") AND (CMAKE_SYSTEM_VERSION MATCHES "HBSD"))
|
||||||
|
set(PHP_EXECUTABLE "PHP_EXECUTABLE-NOTFOUND")
|
||||||
|
endif()
|
||||||
|
|
||||||
if (PHP_EXECUTABLE AND NOT TD_ENABLE_DOTNET)
|
if (PHP_EXECUTABLE AND NOT TD_ENABLE_DOTNET)
|
||||||
set(GENERATE_COMMON_CMD generate_common && ${PHP_EXECUTABLE} DoxygenTlDocumentationGenerator.php scheme/td_api.tl auto/td/telegram/td_api.h)
|
set(GENERATE_COMMON_CMD generate_common && ${PHP_EXECUTABLE} DoxygenTlDocumentationGenerator.php scheme/td_api.tl auto/td/telegram/td_api.h)
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user