File tree Expand file tree Collapse file tree 9 files changed +84
-84
lines changed Expand file tree Collapse file tree 9 files changed +84
-84
lines changed Original file line number Diff line number Diff line change 1
1
[submodule "esp/src/dgrid "]
2
2
path = esp/src/dgrid
3
3
url = https://github.com/hpcc-systems/dgrid.git
4
- [submodule "esp/services/ws_sql/libantlr3c "]
5
- path = esp/services/ws_sql/libantlr3c
6
- url = https://github.com/hpcc-systems/libantlr3c.git
7
4
[submodule "vcpkg "]
8
5
path = vcpkg
9
6
url = https://github.com/hpcc-systems/vcpkg.git
Original file line number Diff line number Diff line change 19
19
# ANTLR_FOUND - ANTLR found in local system
20
20
# ANTLR_BUILDTIME_JAR - The jar needed to build/generate ANTLR Lexers and Parsers
21
21
# ANTLR_RUNTIME_JAR - The jar needed to build/generate ANTLR Lexers and Parsers
22
+ # ANTLR_LIB - The runtime library needed by the generated ANTLR Lexers and Parsers
22
23
################################################################################
23
24
24
25
include (UseJava )
25
26
26
- set (ANTLR_BUILDTIME_DEP "antlr-3.4-complete" CACHE STRING "ANTLR buildtime jar file name." )
27
- set (ANTLR_RUNTIME_DEP "antlr-runtime-3.4" CACHE STRING "ANTLR runtime jar file name." )
28
- set (ANTLR_PATH "${HPCC_SOURCE_DIR} /esp/services/ws_sql/libantlr3c" CACHE PATH "Location of ANTLR jar files." )
29
- set (ANTLR_PKG_FIND_ERROR_MSG "Could not locate jars.\n Please run `git submodule update --init --recursive`\n " )
27
+ set (ANTLR_PKG_FIND_ERROR_MSG "Could not locate jars.\n Please check vcpkg configure completed without issue.\n " )
30
28
29
+ find_library (ANTLR_LIB NAMES antlr3c
30
+ PATHS ${VCPKG_INSTALLED_DIR} /${VCPKG_TARGET_TRIPLET}
31
+ )
31
32
32
- find_jar (ANTLR_BUILDTIME_JAR ${ANTLR_BUILDTIME_DEP} PATHS ${ANTLR_PATH} )
33
- find_jar (ANTLR_RUNTIME_JAR ${ANTLR_RUNTIME_DEP} PATHS ${ANTLR_PATH} )
33
+ find_file (ANTLR_BUILDTIME_JAR "share/antlr3/antlr-3.4-complete.jar"
34
+ PATHS ${VCPKG_INSTALLED_DIR} /${VCPKG_TARGET_TRIPLET}
35
+ )
36
+
37
+ find_file (ANTLR_RUNTIME_JAR "share/antlr3/antlr-runtime-3.4.jar"
38
+ PATHS ${VCPKG_INSTALLED_DIR} /${VCPKG_TARGET_TRIPLET}
39
+ )
34
40
35
41
include (FindPackageHandleStandardArgs )
36
42
find_package_handle_standard_args (
Original file line number Diff line number Diff line change @@ -85,6 +85,11 @@ if (USE_PARQUET)
85
85
endif ()
86
86
87
87
# vcpkg.json options ---
88
+ set (VCPKG_ANTLR3 "${VCPKG_SUPPRESS} " )
89
+ if (WSSQL_SERVICE )
90
+ set (VCPKG_ANTLR3 "${VCPKG_INCLUDE} " )
91
+ endif ()
92
+
88
93
set (VCPKG_APR "${VCPKG_SUPPRESS} " )
89
94
if (USE_APR )
90
95
set (VCPKG_APR "${VCPKG_INCLUDE} " )
Original file line number Diff line number Diff line change @@ -30,13 +30,11 @@ if(WSSQL_SERVICE)
30
30
include (${HPCC_SOURCE_DIR} /esp/scm/smcscm.cmake )
31
31
include (${HPCC_SOURCE_DIR} /esp/scm/espscm.cmake )
32
32
33
- include (antlr3c.cmake )
34
-
35
33
antlr_target (sql2ecl
36
34
GRAMMAR_PREFIX HPCCSQL
37
35
DESTINATION "${CMAKE_CURRENT_BINARY_DIR} "
38
36
GRAMMAR_FILES "${CMAKE_CURRENT_SOURCE_DIR} /SQL2ECL/ANTLR3c/HPCCSQL.g"
39
- )
37
+ )
40
38
41
39
set (SRCS
42
40
${CMAKE_CURRENT_SOURCE_DIR} /ws_sqlPlugin.cpp
@@ -95,7 +93,6 @@ if(WSSQL_SERVICE)
95
93
${HPCC_SOURCE_DIR} /common/dllserver
96
94
${HPCC_SOURCE_DIR} /common/deftype
97
95
${HPCC_SOURCE_DIR} /ecl/hql
98
- ${libantlr3c_includes}
99
96
${ESPSCM_GENERATED_DIR}
100
97
${CMAKE_CURRENT_SOURCE_DIR} /SQL2ECL
101
98
${HPCC_SOURCE_DIR} /common/thorhelper
@@ -120,7 +117,7 @@ if(WSSQL_SERVICE)
120
117
xmllib
121
118
esphttp
122
119
dalibase
123
- libantlr3c
120
+ ${ANTLR_LIB}
124
121
wuwebview
125
122
${COMMON_ESP_SERVICE_LIBS}
126
123
)
@@ -137,5 +134,6 @@ ENDIF()
137
134
RUNTIME DESTINATION ${EXEC_DIR}
138
135
LIBRARY DESTINATION ${LIB_DIR}
139
136
COMPONENT Runtime
140
- )
137
+ CALC_DEPS
138
+ )
141
139
endif ()
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
"name": "hpcc-platform",
4
4
"version": "9.10.0",
5
5
"dependencies": [
6
+ {
7
+ "name": "antlr3",
8
+ "platform": "@VCPKG_ANTLR3@"
9
+ },
6
10
{
7
11
"name": "apr",
8
12
"platform": "@VCPKG_APR@"
Original file line number Diff line number Diff line change
1
+ vcpkg_download_distfile (LIB_C
2
+ URLS "https://github.com/antlr/website-antlr3/raw/refs/heads/gh-pages/download/C/libantlr3c-${VERSION} .tar.gz"
3
+ FILENAME "libantlr3c-${VERSION} .tar.gz"
4
+ SHA512 8edb243d745ff5bf3b15940f124d1255a9ca965cb656a73a558aed7fa07effcd7620f23dc692e5d5169a03200254836dd57af3ce444ba225281a5b721497e211
5
+ )
6
+
7
+ vcpkg_extract_source_archive (SOURCE_PATH
8
+ ARCHIVE "${LIB_C} "
9
+ )
10
+
11
+ set (ARM_FLAG "" )
12
+ if (LINUX )
13
+ execute_process (COMMAND uname -m OUTPUT_VARIABLE ARCHITECTURE )
14
+ string (STRIP ${ARCHITECTURE} ARCHITECTURE )
15
+ if (ARCHITECTURE MATCHES "arm" OR ARCHITECTURE MATCHES "aarch64" )
16
+ set (ARM_FLAG "--build=aarch64-unknown-linux" )
17
+ endif ()
18
+ endif ()
19
+
20
+ vcpkg_configure_make (
21
+ SOURCE_PATH "${SOURCE_PATH} "
22
+ COPY_SOURCE
23
+ OPTIONS
24
+ --enable-64bit
25
+ ${ARM_FLAG}
26
+ )
27
+ vcpkg_install_make ()
28
+ vcpkg_fixup_pkgconfig ()
29
+ vcpkg_copy_pdbs ()
30
+
31
+ vcpkg_download_distfile (COMPLETE_JAR
32
+ URLS "https://github.com/antlr/website-antlr3/raw/refs/heads/gh-pages/download/antlr-${VERSION} -complete.jar"
33
+ FILENAME "antlr-${VERSION} -complete.jar"
34
+ SHA512 04be4dfba3a21f3ab9d9e439a64958bd8e844a9f151b798383bd9e0dd6ebc416783ae7cb1d1dbb27fb7288ab9756b13b8338cdb8ceb41a10949c852ad45ab1f2
35
+ )
36
+
37
+ vcpkg_download_distfile (RUNTIME_JAR
38
+ URLS "https://github.com/antlr/website-antlr3/raw/refs/heads/gh-pages/download/antlr-runtime-${VERSION} .jar"
39
+ FILENAME "antlr-runtime-${VERSION} .jar"
40
+ SHA512 1786aff2df4664483adcb319e64be7b69b643ac9508c3f11796b5aa45b9072b46f53f0a21b2ff7291162afe81506de16161746273e4532ebad75adbd81203f0d
41
+ )
42
+
43
+ file (INSTALL
44
+ DESTINATION "${CURRENT_PACKAGES_DIR} /share/antlr3"
45
+ TYPE FILE
46
+ FILES ${COMPLETE_JAR} ${RUNTIME_JAR}
47
+ )
48
+
49
+ vcpkg_install_copyright (FILE_LIST "${SOURCE_PATH} /COPYING" )
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " antlr3" ,
3
+ "version" : " 3.4" ,
4
+ "port-version" : 0 ,
5
+ "description" : " ANother Tool for Language Recognition" ,
6
+ "homepage" : " https://www.antlr.org" ,
7
+ "license" : " BSD-3-Clause" ,
8
+ "supports" : " !uwp" ,
9
+ "dependencies" : []
10
+ }
You can’t perform that action at this time.
0 commit comments