Commit Graph

11 Commits

Author SHA1 Message Date
adhamehab
657932cd2c Upgrade Python tools to Python3 (#5846) 2019-10-05 10:30:10 -04:00
Filipe Manco
87ad169dd4 Reduce number of configurations on system.py
Summary:
Most paths can be generated, so let's do that instead of keeping big dictionaries.

By now we're down to only a couple of variables that need to be defined, namely the base path for the bcfg files and the toolchains per platform.

Reviewed By: marekcirkos

Differential Revision: D14425056

fbshipit-source-id: 47c935972318602752f50a7b584175322ef27cb6
2019-03-18 14:39:58 -07:00
Filipe Manco
9646d00f05 Make system.py more generic
Summary: system.py will need to support different distros. Make it more generic to simplify that.

Reviewed By: marekcirkos

Differential Revision: D14282633

fbshipit-source-id: e333ac5f29ad8ff074b4c1132ee27c3bfdfda7d8
2019-03-18 14:39:58 -07:00
Filipe Manco
0166d04805 Move python configuration to the toolchain bcfg for Windows
Summary: Having two configuration files makes it harder to manage system.py so move this to the same file and to the toolchain generation script. This will allow us to automatically determine toolchain path as well in the future.

Reviewed By: marekcirkos

Differential Revision: D14425055

fbshipit-source-id: fdc017f2cc55a2efbb33cdf17df64df620eb11b8
2019-03-13 05:39:11 -07:00
Filipe Manco
7f3922acbc Do not handle multiple flavors on system.py
Summary: Simplify the implementation since we can't support multiple flavors at this time anyway. This will also make it easier to support multiple distros later.

Reviewed By: SAlexandru

Differential Revision: D14282635

fbshipit-source-id: cb0262aac55c7a97149ca3432a70ddf71fca8f3b
2019-03-13 05:39:11 -07:00
Filipe Manco
e5aaeda8b9 Fix formatting of oss/mode/system.py
Summary: Reduce differences to internal version to make it easier to diff. These will eventually be the same script but we need to do this step by step.

Reviewed By: SAlexandru

Differential Revision: D14282634

fbshipit-source-id: 322c0bf1b1750bf234d4d14b813c6c5aea3becbd
2019-03-13 05:39:11 -07:00
Jesse Kornblum
242f3b5e4e Add Facebook copyright message (#5455)
Summary:
Pull Request resolved: https://github.com/facebook/osquery/pull/5455

We recently added a Facebook copyright header to many files in the osquery repository. Unfortunately we missed this one in the first diff.

Reviewed By: fmanco

Differential Revision: D14140835

fbshipit-source-id: 370da0af4e67723f8c5002158e643f1f20fd48ba
2019-02-20 02:08:49 -08:00
Alexandru Stefanica
4dd69ab2cc use new vs toolchain flag file (#5406)
Summary:
Pull Request resolved: https://github.com/facebook/osquery/pull/5406

use new flag file for windows toolchain configuration

Reviewed By: mkareta

Differential Revision: D13859827

fbshipit-source-id: 7560c989e2590663d511b5b644ba6bc3c6b5e5f4
2019-01-31 03:32:32 -08:00
Alexandru Stefanica
e401a5e5a1 automatic mode selection (#5369)
Summary:
Pull Request resolved: https://github.com/facebook/osquery/pull/5369

automatically select the appropriate config files based on the current platform and the flavor that was provided

Reviewed By: fmanco, guliashvili

Differential Revision: D13695981

fbshipit-source-id: acdb03bfe4e5d6a352e7a52d5b9812c0e1b05010
2019-01-18 05:28:25 -08:00
George Guliashvili
4967cf3de1 osquery windows oss build fix
Summary: osquery windows oss build fix

Reviewed By: fmanco

Differential Revision: D13431552

fbshipit-source-id: c13f1edac9c08d49901c5db3f58fc5c558ad8410
2018-12-13 05:21:47 -08:00
George Guliashvili
971bee4441 Move build system to BUCK
fbshipit-source-id: 8ffef5e6a393ac67ce56dcb74845402e43d964a0
2018-12-07 16:12:35 +00:00