Commit Graph

36 Commits

Author SHA1 Message Date
Jan Tattermusch 3a2bd221ef
[cmake] Cleanup and simplify the cmake build. (#34087)
Followup for https://github.com/grpc/grpc/pull/33803

More cmake cleanup. See commit descriptions for individual cleanup
items.
2023-08-17 20:26:40 +02:00
Jan Tattermusch a8508ec465
[build metadata] Bazel to "other build systems" improvements (#33803)
- Extract build metadata for some external dependencies from bazel
build. This is achieved by letting extract_metadata_from_bazel_xml.py
analyze some external libraries and sources. The logic is basically the
same as for internal libraries, I only needed to teach
extract_metadata_from_bazel_xml.py which external libraries it is
allowed to analyze.
* currently, the list of source files is automatically determined for
`z`, `upb`, `re2` and `gtest` dependencies (at least for the case where
we're building in "embedded" mode - e.g. mostly native extensions for
python, php, ruby etc. - cmake has the ability to replace some of these
dependencies by actual cmake dependency.)
- Eliminate the need for manually written gen_build_yaml.py for some
dependencies.
- Make the info on target dependencies in build_autogenerated.yaml more
accurate and complete. Until now, there were some depdendencies that
were allowed to show up in build_autogenerated.yaml and some that were
being skipped. This made generating the CMakeLists.txt and Makefile
quite confusing (since some dependencies are being explicitly mentioned
and some had to be assumed by the build system).
- Overhaul the Makefile
* the Makefile is currently only used internally (e.g. for ruby and PHP
builds)
* until now, the makefile wasn't really using the info about which
targets depend on what libraries, but it was effectively hardcoding the
depedendency data (by magically "knowing" what is the list of all the
stuff that e.g. "grpc" depends on).
* After the overhaul, the Makefile.template now actually looks at the
library dependencies and uses them when generating the makefile. This
gives a more correct and easier to maintain makefile.
* since csharp is no longer on the master branch, remove all mentions of
"csharp" targets in the Makefile.

Other notable changes:
- make extract_metadata_from_bazel_xml.py capable of resolving workspace
bind() rules (so that it knows the real name of the target that is
referred to as e.g. `//external:xyz`)

TODO:
- [DONE] ~~pkgconfig C++ distribtest~~
- [DONE} ~~update third_party/README to reflect changes in how some deps
get updated now.~~


Planned followups:
- cleanup naming of some targets in build metadata and buildsystem
templates: libssl vs boringssl, ares vs cares etc.
- further cleanup of Makefile
- further cleanup of CMakeLists.txt
- remote the need from manually hardcoding extra metadata for targets in
build_autogenerated.yaml. Either add logic that determines the
properties of targets automatically, or use metadata from bazel BUILD.
2023-08-16 19:13:39 +02:00
Yash Tibrewal 7a5288d2a0 Replace disrespectful words 2021-02-08 14:29:18 -08:00
Aleksandr Dankovtsev c038f827b8 update required minimal php version to 7.0 2020-11-19 23:52:44 +03:00
Esun Kim de590a21b5 Make build template more robust 2019-12-10 12:44:43 -08:00
Esun Kim 221f5b25af Update by review 2019-11-10 09:27:33 -08:00
Esun Kim 8cad3b37dc Updates build files to use a sorted list of sources 2019-11-09 15:30:15 -08:00
Stanley Cheung 3b3d91921d PHP: update package.xml template 2019-09-24 11:23:12 -07:00
Stanley Cheung ac3c69b99e PHP: make generate_projects.sh smarter for package.xml 2018-01-19 15:27:19 -08:00
David Garcia Quintas b352be025f Upmerge from v1.6.x branch to master 2017-09-18 11:55:52 -07:00
Stanley Cheung abbeefa8a4 PHP: backport master features into v1.6.x branch 2017-08-24 12:28:14 -07:00
Stanley Cheung 5d55948c34 PHP: upmerge from 1.4.x branch 2017-08-22 13:18:14 -07:00
Jan Tattermusch 4d5c3102a1 fix remaining license notices 2017-06-08 11:22:41 +02:00
Stanley Cheung a0e3a87001 PHP: Fixed bug in protoc plugin escaping comments 2017-05-22 14:49:00 -07:00
Stanley Cheung af525b3a26 PHP: windows config.w32 file 2017-05-19 20:00:06 -07:00
Stanley Cheung e9595bad14 PHP: fixed some memory leaks 2017-05-09 15:45:06 -07:00
Stanley Cheung 19792108ae PHP: release 1.3, disable cares deps 2017-05-02 11:24:03 -07:00
Stanley Cheung 82c6d8d4fd PHP: prepare for 1.2 release 2017-03-01 12:43:25 -08:00
Stanley Cheung 4242075c33 PHP: Prepare for 1.1.0 release 2017-01-13 15:23:11 -08:00
Stanley Cheung 129bca6c5b php: error out if metadata key is not legal 2016-08-26 19:54:57 -07:00
Stanley Cheung 557aa4e695 php: bump version 2016-08-22 08:51:47 -07:00
Stanley Cheung 7e8efc3ba8 php: update package.xml 2016-08-09 21:47:46 -07:00
Stanley Cheung 526a9f9086 php: cleanup for GA 2016-07-28 10:33:09 -07:00
Stanley Cheung 31399d20d9 php: update package.xml to 1.0.0RC2 2016-07-21 20:28:11 -07:00
Stanley Cheung 67bccfed99 php: prepare for GA release 2016-07-13 08:37:29 -07:00
Stanley Cheung 2cb69ad203 php: update package.xml 2016-06-30 11:47:14 -07:00
Jan Tattermusch 8f893e180d Merge remote-tracking branch 'upstream/release-0_14' into HEAD 2016-06-13 10:02:11 -07:00
Stanley Cheung 049831a6e6 php: update package.xml after fixes 2016-05-18 09:17:01 -07:00
Stanley Cheung efb01ded5e php: update package.xml after fixes 2016-05-18 09:06:14 -07:00
Stanley Cheung 9a16376dbc php: prepare for release 0.14 2016-04-25 08:14:10 -07:00
Stanley Cheung 3dab4628c6 php: remove hardcoded version in templates 2016-03-23 13:04:53 -07:00
Stanley Cheung 5709e930fa remove stale src/php/ext/grpc/README.md 2016-03-10 16:58:45 -08:00
Stanley Cheung a91a5db363 sync php with core version; 2016-03-01 11:19:16 -08:00
Stanley Cheung df1e05ad24 Simplify PHP installation 2016-02-29 16:26:57 -08:00
Stanley Cheung 6b57328ead remove current date from package.xml; 2016-02-24 21:44:47 -08:00
Stanley Cheung 5adb71fb9a php: simplify installation 2016-02-23 22:26:44 -08:00