mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-07 07:02:53 +03:00
watchman: fixup FB internal mac packaging
Summary: with the reshuffling around getdeps.py, and changes in folly/thrift/wangle, our internal package stopped building. This diff brings it back to life. It is a little bit interwined: * Introduce a `--facebook-internal` switch to getdeps that causes `fb` in the build context to be set to `on` rather than `off`. This allows specifying options in the manifest that are FB specific. * Introduce cmake options to control the WATCHMAN_STATE_DIR and whether cmake should attempt to create WATCHMAN_STATE_DIR when it is installed. * For FB specific builds on macOS, set the state dir to match our existing location and disable creation of WATCHMAN_STATE_DIR because that will ultimately be handling during package installation and we don't have privs for that on the machine generating the package. * Adjust Facebook CI scripts to use getdeps for building and testing watchman Reviewed By: simpkins Differential Revision: D15337970 fbshipit-source-id: 8ab3c1f810decf5f0b16337dc1cbe6dc73d26426
This commit is contained in:
committed by
Facebook Github Bot
parent
344bdd1d67
commit
89bc1d6b04
@@ -98,7 +98,7 @@ class HostType(object):
|
||||
)
|
||||
|
||||
|
||||
def context_from_host_tuple(host_tuple=None):
|
||||
def context_from_host_tuple(host_tuple=None, facebook_internal=False):
|
||||
""" Given an optional host tuple, construct a context appropriate
|
||||
for passing to the boolean expression evaluator so that conditional
|
||||
sections in manifests can be resolved. """
|
||||
@@ -113,4 +113,5 @@ def context_from_host_tuple(host_tuple=None):
|
||||
"os": host_type.ostype,
|
||||
"distro": host_type.distro,
|
||||
"distro_vers": host_type.distrovers,
|
||||
"fb": "on" if facebook_internal else "off",
|
||||
}
|
||||
|
Reference in New Issue
Block a user