mirror of
https://github.com/fwbuilder/fwbuilder
synced 2025-02-12 08:37:39 +01:00
chore: Remove QBS </3
This commit is contained in:
parent
fabab75858
commit
ac89370f29
67
doc/doc.qbs
67
doc/doc.qbs
@ -1,67 +0,0 @@
|
||||
import qbs 1.0
|
||||
import qbs.FileInfo
|
||||
|
||||
FWBProduct {
|
||||
type: ["application", "man_pages"]
|
||||
name: "doc"
|
||||
|
||||
Group {
|
||||
name: "Docs"
|
||||
files: [
|
||||
"AUTHORS",
|
||||
"ChangeLog",
|
||||
"COPYING",
|
||||
"Credits",
|
||||
"FWBuilder-Routing-LICENSE.txt",
|
||||
"PatchAcceptancePolicy.txt",
|
||||
"README.*"
|
||||
]
|
||||
qbs.install: qbs.targetOS.contains("linux") || qbs.targetOS.contains("windows")
|
||||
qbs.installDir: qbs.targetOS.contains("unix") ? "share/doc/fwbuilder-"+project.version : "doc"
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "Uncompressed man pages"
|
||||
files: [
|
||||
"fwbedit.1",
|
||||
"fwbuilder.1",
|
||||
"fwb_iosacl.1",
|
||||
"fwb_ipf.1",
|
||||
"fwb_ipfw.1",
|
||||
"fwb_ipt.1",
|
||||
"fwb_pf.1",
|
||||
"fwb_pix.1"
|
||||
]
|
||||
fileTags: "source_man_pages"
|
||||
condition: !qbs.targetOS.contains("windows")
|
||||
}
|
||||
|
||||
Rule {
|
||||
inputs: ["source_man_pages"]
|
||||
|
||||
Artifact {
|
||||
filePath: input.fileName + ".gz"
|
||||
fileTags: ["man_pages"]
|
||||
}
|
||||
|
||||
prepare: {
|
||||
var outPath = FileInfo.path(output.filePath);
|
||||
|
||||
var copyCmd = new Command("cp", [input.filePath, [outPath, output.completeBaseName].join('/')]);
|
||||
copyCmd.silent = true;
|
||||
|
||||
var compressCmd = new Command("gzip", [outPath, output.completeBaseName].join('/'));
|
||||
compressCmd.description = "Compressing man page: " + input.fileName;
|
||||
compressCmd.highlight = "codegen";
|
||||
|
||||
return [copyCmd, compressCmd];
|
||||
}
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "Man pages"
|
||||
fileTagsFilter: "man_pages"
|
||||
qbs.install: qbs.targetOS.contains("linux")
|
||||
qbs.installDir: qbs.targetOS.contains("unix") ? "share/man/man1" : ""
|
||||
}
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
import qbs 1.0
|
||||
import "qbs/imports/Git.qbs" as Git
|
||||
|
||||
Project {
|
||||
name: "fwbuilder"
|
||||
qbsSearchPaths: "qbs"
|
||||
|
||||
Git { id: git }
|
||||
|
||||
property string version: git.version || "6.0.0-beta"
|
||||
property string xmlVersion: "24"
|
||||
property string installPrefix: (qbs.installPrefix ? qbs.installPrefix : '/usr')
|
||||
property string resourcesDir: {
|
||||
if (qbs.targetOS.contains("windows"))
|
||||
return "resources";
|
||||
else if (qbs.targetOS.contains("macos"))
|
||||
return "../Resources"
|
||||
else
|
||||
return "share"
|
||||
}
|
||||
property bool lto
|
||||
|
||||
references: [
|
||||
"src/libfwbuilder/src/fwbuilder/fwbuilder.qbs",
|
||||
"src/libfwbuilder/src/fwcompiler/fwcompiler.qbs",
|
||||
"src/libfwbuilder/etc/etc.qbs",
|
||||
"src/libfwbuilder/migration/migration.qbs",
|
||||
"src/antlr/antlr.qbs",
|
||||
"src/import/import.qbs",
|
||||
"src/parsers/parsers.qbs",
|
||||
"src/common/common.qbs",
|
||||
"src/compiler_lib/compiler_lib.qbs",
|
||||
"src/juniper_lib/juniper_lib.qbs",
|
||||
"src/cisco_lib/cisco_lib.qbs",
|
||||
"src/pflib/pflib.qbs",
|
||||
"src/iptlib/iptlib.qbs",
|
||||
"src/ipfw/ipfw.qbs",
|
||||
"src/pf/pf.qbs",
|
||||
"src/iosacl/iosacl.qbs",
|
||||
"src/ipf/ipf.qbs",
|
||||
"src/nxosacl/nxosacl.qbs",
|
||||
"src/procurve_acl/procurve_acl.qbs",
|
||||
"src/ipt/ipt.qbs",
|
||||
"src/pix/pix.qbs",
|
||||
"src/junosacl/junosacl.qbs",
|
||||
"src/libgui/libgui.qbs",
|
||||
"src/gui/gui.qbs",
|
||||
"src/fwbedit/fwbedit.qbs",
|
||||
"src/res/res.qbs",
|
||||
"doc/doc.qbs",
|
||||
"packaging/packaging.qbs"
|
||||
]
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: ["nsi"]
|
||||
name: "packaging"
|
||||
|
||||
Group {
|
||||
files: ["fwbuilder.nsi.in"]
|
||||
fileTags: "nsi.in"
|
||||
}
|
||||
|
||||
InputFileRule {
|
||||
inputs: ["nsi.in"]
|
||||
artifactFileTags: ["nsi"]
|
||||
}
|
||||
|
||||
Group {
|
||||
condition: qbs.targetOS.contains("windows")
|
||||
name: "NSIS Installer script"
|
||||
fileTagsFilter: ["nsi"]
|
||||
qbs.install: true
|
||||
}
|
||||
|
||||
Group {
|
||||
condition: qbs.targetOS.contains("windows")
|
||||
name: "NSIS Installer images"
|
||||
files: [
|
||||
"fwbuilder-160x60.bmp",
|
||||
"fwbuilder-164x314.bmp"
|
||||
]
|
||||
qbs.install: true
|
||||
}
|
||||
}
|
@ -1,97 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
Product {
|
||||
|
||||
Depends { name: "cpp" }
|
||||
|
||||
property string resDir: {
|
||||
if (qbs.targetOS.contains("windows"))
|
||||
return "resources";
|
||||
else if (qbs.targetOS.contains("macos"))
|
||||
return "../Resources";
|
||||
else
|
||||
return project.installPrefix + '/share/fwbuilder-' + project.version;
|
||||
}
|
||||
|
||||
qbs.optimization: "fast"
|
||||
cpp.cxxLanguageVersion: "c++14"
|
||||
cpp.discardUnusedData: qbs.buildVariant == "release"
|
||||
cpp.warningLevel: qbs.toolchain.contains("msvc") ? "" : "all"
|
||||
cpp.treatWarningsAsErrors: true
|
||||
cpp.includePaths: [product.sourceDirectory]
|
||||
cpp.dynamicLibraries: []
|
||||
|
||||
cpp.defines: [
|
||||
'__STDC_FORMAT_MACROS',
|
||||
'GENERATION="' + project.version.slice(0,project.version.lastIndexOf('.')) + '"',
|
||||
'VERSION="' + project.version + '"',
|
||||
'PREFIX="' + project.installPrefix + '"',
|
||||
'RES_DIR="' + resDir + '"',
|
||||
'FS_SEPARATOR="/"',
|
||||
'FWBUILDER_XML_VERSION="' + project.xmlVersion + '"'
|
||||
]
|
||||
|
||||
cpp.cxxFlags: ["-Wno-overloaded-virtual"]
|
||||
cpp.linkerFlags: []
|
||||
|
||||
Properties {
|
||||
condition: project.lto
|
||||
cpp.cxxFlags: outer.concat([ "-flto" ])
|
||||
cpp.linkerFlags: outer.concat([ "-flto" ])
|
||||
}
|
||||
|
||||
Properties {
|
||||
condition: qbs.toolchain.contains("mingw")
|
||||
cpp.defines: outer.concat([
|
||||
"WIN32_LEAN_AND_MEAN",
|
||||
"USE_PTHREADS"
|
||||
])
|
||||
cpp.dynamicLibraries: outer.concat(["pthread"])
|
||||
}
|
||||
|
||||
Properties {
|
||||
condition: (qbs.toolchainType === "gcc")
|
||||
cpp.cxxFlags: outer.concat([
|
||||
"-pipe",
|
||||
"-fPIE",
|
||||
"-D_FORTIFY_SOURCE=2",
|
||||
"-fstack-protector-strong",
|
||||
"-fasynchronous-unwind-tables"
|
||||
])
|
||||
cpp.linkerFlags: outer.concat([
|
||||
"-pie",
|
||||
"-zdefs",
|
||||
"-znow",
|
||||
"-zrelro"
|
||||
])
|
||||
}
|
||||
|
||||
Properties {
|
||||
condition: (qbs.toolchainType === "clang")
|
||||
cpp.cxxFlags: outer.concat([
|
||||
"-pipe",
|
||||
"-fPIE",
|
||||
"-D_FORTIFY_SOURCE=2",
|
||||
"-fasynchronous-unwind-tables"
|
||||
])
|
||||
cpp.linkerFlags: outer.concat([
|
||||
"-pie"
|
||||
])
|
||||
}
|
||||
|
||||
Properties {
|
||||
condition: (qbs.toolchainType === "xcode")
|
||||
cpp.cxxFlags: outer.concat([
|
||||
"-pipe",
|
||||
"-fPIE",
|
||||
"-fstack-protector-strong"
|
||||
])
|
||||
}
|
||||
|
||||
Properties {
|
||||
condition: (qbs.toolchainType === "msvc")
|
||||
cpp.dynamicLibraries: outer.concat(["ws2_32", "advapi32"])
|
||||
cpp.defines: outer.concat(["WIN32_LEAN_AND_MEAN"])
|
||||
}
|
||||
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
import qbs 1.0
|
||||
import qbs.Process
|
||||
|
||||
Probe {
|
||||
property string version
|
||||
property string generation
|
||||
|
||||
configure: {
|
||||
revision = undefined
|
||||
var p = new Process()
|
||||
if (p.exec("git", ["describe", "--tags", "--always"]) === 0) {
|
||||
version = p.readStdOut().trim().slice(1);
|
||||
generation = version.slice(0, version.lastIndexOf('.'))
|
||||
} else {
|
||||
console.error("Git not found")
|
||||
}
|
||||
}
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
import qbs 1.0
|
||||
import qbs.TextFile
|
||||
|
||||
Rule {
|
||||
property stringList artifactFileTags
|
||||
|
||||
Artifact {
|
||||
filePath: input.completeBaseName
|
||||
fileTags: artifactFileTags
|
||||
}
|
||||
|
||||
prepare: {
|
||||
var cmd = new JavaScriptCommand();
|
||||
cmd.description = input.fileName + " -> " + output.fileName;
|
||||
cmd.highlight = "codegen";
|
||||
cmd.sourceCode = function() {
|
||||
var inFile = new TextFile(input.filePath, TextFile.ReadOnly)
|
||||
var contents = inFile.readAll();
|
||||
inFile.close();
|
||||
|
||||
var vars = {
|
||||
FWBUILDER_XML_VERSION: project.xmlVersion,
|
||||
VERSION: project.version,
|
||||
GENERATION: project.version.slice(0, project.version.lastIndexOf('.')),
|
||||
GENERATION_SHORT: project.version.slice(0, project.version.lastIndexOf('.')).replace('.', '')
|
||||
};
|
||||
|
||||
for (var i in vars) {
|
||||
contents = contents.replace(new RegExp('@' + i + '@(?!\w)', 'g'), vars[i]);
|
||||
}
|
||||
|
||||
var file = new TextFile(output.filePath, TextFile.WriteOnly);
|
||||
file.write(contents);
|
||||
file.close();
|
||||
};
|
||||
return [cmd];
|
||||
}
|
||||
}
|
@ -1,65 +0,0 @@
|
||||
import qbs 1.0
|
||||
import qbs.Process
|
||||
|
||||
Module {
|
||||
readonly property bool found: probe.found
|
||||
readonly property string packageVersion: probe.modversion
|
||||
|
||||
Depends { name: "cpp" }
|
||||
|
||||
cpp.defines: probe.defines == undefined ? [] : probe.defines
|
||||
cpp.commonCompilerFlags: probe.compilerFlags == undefined ? [] : probe.compilerFlags
|
||||
cpp.includePaths: probe.includePaths == undefined ? [] : probe.includePaths
|
||||
cpp.libraryPaths: probe.libraryPaths == undefined ? [] : probe.libraryPaths
|
||||
cpp.dynamicLibraries: probe.libraries == undefined ? [] : probe.libraries
|
||||
cpp.linkerFlags: probe.linkerFlags == undefined ? [] : probe.linkerFlags
|
||||
|
||||
Probe {
|
||||
id: probe
|
||||
|
||||
property string executable: 'net-snmp-config'
|
||||
|
||||
property stringList cflags
|
||||
property stringList libs
|
||||
|
||||
property stringList defines
|
||||
property stringList libraries
|
||||
property stringList libraryPaths
|
||||
property stringList includePaths
|
||||
property stringList compilerFlags
|
||||
property stringList linkerFlags
|
||||
property string modversion
|
||||
|
||||
configure: {
|
||||
var p = new Process()
|
||||
try {
|
||||
if (p.exec(executable, ['--version']) === 0) {
|
||||
modversion = p.readStdOut().trim()
|
||||
if (p.exec(executable, ['--netsnmp-libs']) === 0) {
|
||||
libs = p.readStdOut().trim()
|
||||
libs = libs ? libs.split(/\s/) : []
|
||||
libraries = []
|
||||
libraryPaths = []
|
||||
linkerFlags = []
|
||||
for (var i = 0; i < libs.length; ++i) {
|
||||
var flag = libs[i]
|
||||
if (flag.startsWith("-l"))
|
||||
libraries.push(flag.slice(2))
|
||||
else if (flag.startsWith("-L"))
|
||||
libraryPaths.push(flag.slice(2))
|
||||
else
|
||||
linkerFlags.push(flag)
|
||||
}
|
||||
}
|
||||
defines = ['HAVE_LIBSNMP=1', 'NET_SNMP=1']
|
||||
console.debug("Found net-snmp " + modversion)
|
||||
found = true
|
||||
} else {
|
||||
found: false
|
||||
}
|
||||
} finally {
|
||||
p.close()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,81 +0,0 @@
|
||||
import qbs 1.0
|
||||
import qbs.Probes
|
||||
import qbs.Environment
|
||||
|
||||
Module {
|
||||
readonly property bool found: probe.found
|
||||
readonly property string packageVersion: probe.modversion
|
||||
|
||||
Depends { name: "cpp" }
|
||||
Depends { name: "zlib" }
|
||||
|
||||
cpp.defines: probe.defines == undefined ? [] : probe.defines
|
||||
cpp.commonCompilerFlags: probe.compilerFlags == undefined ? [] : probe.compilerFlags
|
||||
cpp.linkerFlags: probe.linkerFlags == undefined ? [] : probe.linkerFlags
|
||||
|
||||
cpp.includePaths: {
|
||||
if (qbs.toolchain.contains("msvc")) {
|
||||
var includePaths = [];
|
||||
|
||||
var libxml2IncludePath = Environment.getEnv('LIBXML2_INC_DIR');
|
||||
if (libxml2IncludePath === undefined || libxml2IncludePath === '') {
|
||||
console.error('LIBXML2_INC_DIR is not set');
|
||||
} else {
|
||||
includePaths.push(libxml2IncludePath);
|
||||
}
|
||||
|
||||
var libiconvIncludePath = Environment.getEnv('LIBICONV_INC_DIR');
|
||||
if (libiconvIncludePath !== undefined && libiconvIncludePath !== '') {
|
||||
includePaths.push(libiconvIncludePath);
|
||||
}
|
||||
|
||||
return includePaths;
|
||||
}
|
||||
if (probe.includePaths)
|
||||
return probe.includePaths;
|
||||
return [];
|
||||
}
|
||||
|
||||
cpp.libraryPaths: {
|
||||
if (qbs.toolchain.contains("msvc")) {
|
||||
var libraryPath = Environment.getEnv('LIBXML2_LIB_DIR');
|
||||
if (libraryPath === undefined || libraryPath === '')
|
||||
console.error('LIBXML2_LIB_DIR is not set');
|
||||
else
|
||||
return libraryPath;
|
||||
}
|
||||
if (probe.libraryPaths)
|
||||
return probe.libraryPaths;
|
||||
return [];
|
||||
}
|
||||
|
||||
cpp.dynamicLibraries: {
|
||||
if (qbs.toolchain.contains("msvc")) {
|
||||
var library = Environment.getEnv('LIBXML2_LIB_NAME');
|
||||
if (library === undefined || library === '')
|
||||
console.error('LIBXML2_LIB_NAME is not set');
|
||||
else
|
||||
return library;
|
||||
}
|
||||
if (probe.libraries)
|
||||
return probe.libraries;
|
||||
return [];
|
||||
}
|
||||
|
||||
Probes.PkgConfigProbe {
|
||||
id: probe
|
||||
name: "libxml-2.0"
|
||||
executable: {
|
||||
if (qbs.toolchain.contains("mingw"))
|
||||
return "i686-w64-mingw32.shared-pkg-config"
|
||||
else
|
||||
return "pkg-config"
|
||||
}
|
||||
sysroot: {
|
||||
if (qbs.targetOS.contains("macos"))
|
||||
return undefined;
|
||||
else
|
||||
return qbs.sysroot;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
import qbs 1.0
|
||||
import qbs.Probes
|
||||
import qbs.Environment
|
||||
|
||||
Module {
|
||||
readonly property bool found: probe.found
|
||||
readonly property string packageVersion: probe.modversion
|
||||
|
||||
Depends { name: "cpp" }
|
||||
Depends { name: "libxml2" }
|
||||
|
||||
cpp.defines: probe.defines == undefined ? [] : probe.defines
|
||||
cpp.commonCompilerFlags: probe.compilerFlags == undefined ? [] : probe.compilerFlags
|
||||
cpp.includePaths: probe.includePaths == undefined ? [] : probe.includePaths
|
||||
cpp.libraryPaths: probe.libraryPaths == undefined ? [] : probe.libraryPaths
|
||||
cpp.dynamicLibraries: probe.libraries == undefined ? [] : probe.libraries
|
||||
cpp.linkerFlags: {
|
||||
if (qbs.toolchain.contains("mingw"))
|
||||
return [];
|
||||
return (probe.linkerFlags == undefined ? [] : probe.linkerFlags);
|
||||
}
|
||||
|
||||
Probes.PkgConfigProbe {
|
||||
id: probe
|
||||
name: "libxslt"
|
||||
executable: {
|
||||
if (qbs.toolchain.contains("mingw"))
|
||||
return "i686-w64-mingw32.shared-pkg-config"
|
||||
else
|
||||
return "pkg-config"
|
||||
}
|
||||
sysroot: {
|
||||
if (qbs.targetOS.contains("macos"))
|
||||
return undefined;
|
||||
else
|
||||
return qbs.sysroot;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,70 +0,0 @@
|
||||
import qbs 1.0
|
||||
import qbs.Probes
|
||||
import qbs.Environment
|
||||
|
||||
Module {
|
||||
readonly property bool found: probe.found
|
||||
readonly property string packageVersion: probe.modversion
|
||||
|
||||
Depends { name: "cpp" }
|
||||
|
||||
cpp.defines: probe.defines == undefined ? [] : probe.defines
|
||||
cpp.commonCompilerFlags: probe.compilerFlags == undefined ? [] : probe.compilerFlags
|
||||
cpp.linkerFlags: probe.linkerFlags == undefined ? [] : probe.linkerFlags
|
||||
|
||||
cpp.includePaths: {
|
||||
if (qbs.toolchain.contains("msvc")) {
|
||||
var includePath = Environment.getEnv('ZLIB_INC_DIR');
|
||||
if (includePath === '')
|
||||
console.error('ZLIB_INC_DIR is not set');
|
||||
else
|
||||
return includePath;
|
||||
}
|
||||
if (probe.includePaths)
|
||||
return probe.includePaths;
|
||||
return [];
|
||||
}
|
||||
|
||||
cpp.libraryPaths: {
|
||||
if (qbs.toolchain.contains("msvc")) {
|
||||
var libraryPath = Environment.getEnv('ZLIB_LIB_DIR');
|
||||
if (libraryPath === '')
|
||||
console.error('ZLIB_LIB_DIR is not set');
|
||||
else
|
||||
return libraryPath;
|
||||
}
|
||||
if (probe.libraryPaths)
|
||||
return probe.libraryPaths;
|
||||
return [];
|
||||
}
|
||||
|
||||
cpp.dynamicLibraries: {
|
||||
if (qbs.toolchain.contains("msvc")) {
|
||||
var library = Environment.getEnv('ZLIB_LIB_NAME');
|
||||
if (library === '')
|
||||
console.error('ZLIB_LIB_NAME is not set');
|
||||
else
|
||||
return library;
|
||||
}
|
||||
if (probe.libraries)
|
||||
return probe.libraries;
|
||||
return [];
|
||||
}
|
||||
|
||||
Probes.PkgConfigProbe {
|
||||
id: probe
|
||||
name: "zlib"
|
||||
executable: {
|
||||
if (qbs.toolchain.contains("mingw"))
|
||||
return "i686-w64-mingw32.shared-pkg-config"
|
||||
else
|
||||
return "pkg-config"
|
||||
}
|
||||
sysroot: {
|
||||
if (qbs.targetOS.contains("macos"))
|
||||
return undefined;
|
||||
else
|
||||
return qbs.sysroot;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "staticlibrary"
|
||||
name: "antlr"
|
||||
|
||||
Depends { name: "Qt.core" }
|
||||
Depends { name: "cpp" }
|
||||
|
||||
cpp.includePaths: base.concat(['..'])
|
||||
|
||||
Export {
|
||||
Depends { name: "cpp" }
|
||||
cpp.includePaths: [product.sourceDirectory, '..']
|
||||
}
|
||||
|
||||
files: [
|
||||
"ANTLRUtil.cpp",
|
||||
"ASTFactory.cpp",
|
||||
"ASTNULLType.cpp",
|
||||
"ASTRefCount.cpp",
|
||||
"BaseAST.cpp",
|
||||
"BitSet.cpp",
|
||||
"CharBuffer.cpp",
|
||||
"CharScanner.cpp",
|
||||
"CommonAST.cpp",
|
||||
"CommonASTWithHiddenTokens.cpp",
|
||||
"CommonHiddenStreamToken.cpp",
|
||||
"CommonToken.cpp",
|
||||
"InputBuffer.cpp",
|
||||
"LLkParser.cpp",
|
||||
"MismatchedCharException.cpp",
|
||||
"MismatchedTokenException.cpp",
|
||||
"NoViableAltException.cpp",
|
||||
"NoViableAltForCharException.cpp",
|
||||
"Parser.cpp",
|
||||
"RecognitionException.cpp",
|
||||
"String.cpp",
|
||||
"TokenBuffer.cpp",
|
||||
"Token.cpp",
|
||||
"TokenRefCount.cpp",
|
||||
"TokenStreamBasicFilter.cpp",
|
||||
"TokenStreamHiddenTokenFilter.cpp",
|
||||
"TokenStreamRewriteEngine.cpp",
|
||||
"TokenStreamSelector.cpp",
|
||||
"TreeParser.cpp"
|
||||
]
|
||||
}
|
@ -1,85 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "staticlibrary"
|
||||
name: "cisco_lib"
|
||||
targetName: "fwbcisco"
|
||||
|
||||
Depends { name: "cpp" }
|
||||
Depends { name: "Qt.core" }
|
||||
Depends { name: "libfwbuilder" }
|
||||
Depends { name: "compiler_lib" }
|
||||
Depends { name: "libfwcompiler" }
|
||||
Depends { name: "libxml2" }
|
||||
|
||||
Export {
|
||||
Depends { name: "cpp" }
|
||||
cpp.includePaths: [product.sourceDirectory, '..']
|
||||
}
|
||||
|
||||
files: [
|
||||
"PolicyCompiler_cisco.cpp",
|
||||
"PolicyCompiler_cisco_acls.cpp",
|
||||
"NamedObjectsAndGroupsSupport.cpp",
|
||||
"NamedObjectsManager.cpp",
|
||||
"NamedObjectsManagerNXOS.cpp",
|
||||
"NamedObjectsManagerIOS.cpp",
|
||||
"NamedObjectsManagerPIX.cpp",
|
||||
"RoutingCompiler_cisco.cpp",
|
||||
"RoutingCompiler_cisco_writers.cpp",
|
||||
"splitByNetworkZonesForRE.cpp",
|
||||
"specialServices.cpp",
|
||||
"ACL.cpp",
|
||||
"NamedObject.cpp",
|
||||
"ASA8TwiceNatLogic.cpp",
|
||||
"Helper.cpp",
|
||||
"inspectionProtocol.cpp",
|
||||
"inspectionClassMap.cpp",
|
||||
"OSConfigurator_nxos.cpp",
|
||||
"OSConfigurator_ios.cpp",
|
||||
"CompilerDriver_nxosacl.cpp",
|
||||
"CompilerDriver_nxosacl_run.cpp",
|
||||
"CompilerDriver_iosacl.cpp",
|
||||
"CompilerDriver_iosacl_run.cpp",
|
||||
"PolicyCompiler_nxosacl.cpp",
|
||||
"PolicyCompiler_nxosacl_writers.cpp",
|
||||
"PolicyCompiler_iosacl.cpp",
|
||||
"PolicyCompiler_iosacl_writers.cpp",
|
||||
"RoutingCompiler_nxosacl.cpp",
|
||||
"RoutingCompiler_nxosacl_writers.cpp",
|
||||
"RoutingCompiler_iosacl.cpp",
|
||||
"RoutingCompiler_iosacl_writers.cpp",
|
||||
"CompilerDriver_pix.cpp",
|
||||
"CompilerDriver_pix_run.cpp",
|
||||
"NATCompiler_pix.cpp",
|
||||
"NATCompiler_pix_find_translations.cpp",
|
||||
"NATCompiler_pix_writers.cpp",
|
||||
"NATCompiler_asa8.cpp",
|
||||
"NATCompiler_asa8_writers.cpp",
|
||||
"NATCompiler_pix_optimizers.cpp",
|
||||
"OSConfigurator_pix_os.cpp",
|
||||
"OSConfigurator_pix_os_fixups.cpp",
|
||||
"OSConfigurator_pix_os_inspectors.cpp",
|
||||
"OSConfigurator_pix_os_inspectors_pix8.cpp",
|
||||
"CompilerDriver_procurve_acl.cpp",
|
||||
"CompilerDriver_procurve_acl_run.cpp",
|
||||
"OSConfigurator_procurve.cpp",
|
||||
"PolicyCompiler_procurve_acl.cpp",
|
||||
"PolicyCompiler_procurve_acl_writers.cpp",
|
||||
"RoutingCompiler_procurve_acl.cpp",
|
||||
"BaseObjectGroup.cpp",
|
||||
"PIXObjectGroup.cpp",
|
||||
"ASA8ObjectGroup.cpp",
|
||||
"NXOSObjectGroup.cpp",
|
||||
"IOSObjectGroup.cpp",
|
||||
"PolicyCompiler_pix.cpp",
|
||||
"PolicyCompiler_pix_writers.cpp",
|
||||
"PolicyCompiler_pix_v6_acls.cpp",
|
||||
"PolicyCompiler_pix_replace_translations.cpp",
|
||||
"RoutingCompiler_pix.cpp",
|
||||
"RoutingCompiler_pix_writers.cpp",
|
||||
"AutomaticRules_cisco.cpp",
|
||||
"AutomaticRules_iosacl.cpp",
|
||||
"AutomaticRules_nxosacl.cpp"
|
||||
]
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "staticlibrary"
|
||||
name: "common"
|
||||
|
||||
Depends { name: "cpp" }
|
||||
Depends { name: "Qt.core" }
|
||||
Depends { name: "libfwbuilder" }
|
||||
Depends { name: "libfwcompiler" }
|
||||
Depends { name: "libxml2" }
|
||||
Depends { name: "libimport" }
|
||||
|
||||
Export {
|
||||
Depends { name: "cpp" }
|
||||
cpp.includePaths: product.sourceDirectory
|
||||
}
|
||||
|
||||
files: [
|
||||
"init.cpp",
|
||||
"init2.cpp"
|
||||
]
|
||||
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "staticlibrary"
|
||||
name: "compiler_lib"
|
||||
targetName: "compilerdriver"
|
||||
|
||||
Depends { name: "cpp" }
|
||||
Depends { name: "Qt.core" }
|
||||
Depends { name: "libfwbuilder" }
|
||||
Depends { name: "libxml2" }
|
||||
|
||||
Export {
|
||||
Depends { name: "cpp" }
|
||||
cpp.includePaths: product.sourceDirectory
|
||||
}
|
||||
|
||||
files: [
|
||||
"CompilerDriver.cpp",
|
||||
"CompilerDriver_files.cpp",
|
||||
"CompilerDriver_compile.cpp",
|
||||
"CompilerDriver_generators.cpp",
|
||||
"Configlet.cpp",
|
||||
"interfaceProperties.cpp",
|
||||
"linux24Interfaces.cpp",
|
||||
"openbsdInterfaces.cpp",
|
||||
"freebsdInterfaces.cpp",
|
||||
"nxosInterfaces.cpp",
|
||||
"iosInterfaces.cpp",
|
||||
"junosInterfaces.cpp",
|
||||
"procurveInterfaces.cpp",
|
||||
"pixInterfaces.cpp",
|
||||
"interfacePropertiesObjectFactory.cpp",
|
||||
"AutomaticRules.cpp"
|
||||
]
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "application"
|
||||
name: "fwbedit"
|
||||
|
||||
Depends {
|
||||
name: "Qt"
|
||||
submodules: [
|
||||
"core",
|
||||
"gui",
|
||||
"widgets",
|
||||
"printsupport"
|
||||
]
|
||||
}
|
||||
|
||||
Depends { name: "cpp" }
|
||||
Depends { name: "libfwbuilder" }
|
||||
Depends { name: "compiler_lib" }
|
||||
Depends { name: "libimport" }
|
||||
Depends { name: "common" }
|
||||
Depends { name: "libgui" }
|
||||
Depends { name: "libxml2" }
|
||||
Depends { name: "libxslt" }
|
||||
Depends { name: "zlib" }
|
||||
|
||||
files: [
|
||||
"fwbedit.cpp",
|
||||
"new_object.cpp",
|
||||
"repair_tree.cpp",
|
||||
"list_object.cpp",
|
||||
"merge.cpp",
|
||||
"import.cpp",
|
||||
"../libgui/FWBTree.cpp",
|
||||
"../libgui/platforms.cpp"
|
||||
]
|
||||
|
||||
Group {
|
||||
fileTagsFilter: "application"
|
||||
qbs.install: true
|
||||
qbs.installDir: {
|
||||
if (qbs.targetOS.contains("windows"))
|
||||
return "";
|
||||
if (qbs.targetOS.contains("macos"))
|
||||
return project.name + ".app/Contents/MacOS/";
|
||||
return "bin";
|
||||
}
|
||||
}
|
||||
}
|
@ -1,77 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "application"
|
||||
name: "gui"
|
||||
targetName: "fwbuilder"
|
||||
bundle.isBundle: qbs.targetOS.contains("macos")
|
||||
consoleApplication: false
|
||||
|
||||
Depends {
|
||||
name: "Qt"
|
||||
submodules: [
|
||||
"core",
|
||||
"gui",
|
||||
"widgets",
|
||||
"network",
|
||||
"printsupport"
|
||||
]
|
||||
}
|
||||
|
||||
Depends { name: "bundle" }
|
||||
Depends { name: "libfwbuilder" }
|
||||
Depends { name: "common" }
|
||||
Depends { name: "antlr" }
|
||||
Depends { name: "parsers" }
|
||||
Depends { name: "compiler_lib" }
|
||||
Depends { name: "libimport" }
|
||||
Depends { name: "libgui" }
|
||||
Depends { name: "libxml2" }
|
||||
Depends { name: "libxslt" }
|
||||
Depends { name: "zlib" }
|
||||
Depends { name: "libsnmp" }
|
||||
|
||||
cpp.dynamicLibraries: {
|
||||
if (qbs.targetOS.contains("unix"))
|
||||
return base.concat(["util"]);
|
||||
return base;
|
||||
}
|
||||
|
||||
files: [
|
||||
"main.cpp"
|
||||
]
|
||||
|
||||
Group {
|
||||
condition: qbs.targetOS.contains("windows")
|
||||
files: [
|
||||
"fwbuilder-windows.rc"
|
||||
]
|
||||
}
|
||||
|
||||
Group {
|
||||
condition: qbs.targetOS.contains("windows")
|
||||
files: [
|
||||
"fwbuilder-windows.ico"
|
||||
]
|
||||
qbs.install: true
|
||||
}
|
||||
|
||||
Group {
|
||||
fileTagsFilter: "application"
|
||||
qbs.install: !bundle.isBundle
|
||||
qbs.installDir: {
|
||||
if (qbs.targetOS.contains("windows"))
|
||||
return "";
|
||||
if (qbs.targetOS.contains("macos"))
|
||||
return "";
|
||||
return "bin";
|
||||
}
|
||||
}
|
||||
|
||||
Group {
|
||||
fileTagsFilter: ["bundle.content"]
|
||||
qbs.install: true
|
||||
qbs.installDir: '.'
|
||||
qbs.installSourceBase: product.buildDirectory
|
||||
}
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "staticlibrary"
|
||||
name: "libimport"
|
||||
targetName: "import"
|
||||
|
||||
Depends { name: "cpp" }
|
||||
Depends { name: "Qt.gui" }
|
||||
Depends { name: "libfwbuilder" }
|
||||
Depends { name: "antlr" }
|
||||
Depends { name: "parsers" }
|
||||
Depends { name: "compiler_lib" }
|
||||
Depends { name: "libxml2" }
|
||||
|
||||
Export {
|
||||
Depends { name: "cpp" }
|
||||
cpp.includePaths: product.sourceDirectory
|
||||
}
|
||||
|
||||
files: [
|
||||
"QStringListOperators.cpp",
|
||||
"PreImport.cpp",
|
||||
"objectMaker.cpp",
|
||||
"objectSignature.cpp",
|
||||
"addressObjectMaker.cpp",
|
||||
"serviceObjectMaker.cpp",
|
||||
"getProtoByName.cpp",
|
||||
"getServByName.cpp",
|
||||
"Importer.cpp",
|
||||
"IOSImporter.cpp",
|
||||
"IOSImporterRun.cpp",
|
||||
"IPTImporter.cpp",
|
||||
"IPTImporterRun.cpp",
|
||||
"PIXImporter.cpp",
|
||||
"PIXImporterNat.cpp",
|
||||
"PIXImporterRun.cpp",
|
||||
"PFImporter.cpp",
|
||||
"PFImporterRun.cpp"
|
||||
]
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "application"
|
||||
name: "iosacl"
|
||||
targetName: "fwb_iosacl"
|
||||
|
||||
Depends {
|
||||
name: "Qt"
|
||||
submodules: [
|
||||
"core",
|
||||
"gui",
|
||||
"widgets"
|
||||
]
|
||||
}
|
||||
|
||||
Depends { name: "libfwbuilder" }
|
||||
Depends { name: "libfwcompiler" }
|
||||
Depends { name: "compiler_lib" }
|
||||
Depends { name: "cisco_lib" }
|
||||
Depends { name: "common" }
|
||||
Depends { name: "libxml2" }
|
||||
Depends { name: "libxslt" }
|
||||
Depends { name: "zlib" }
|
||||
|
||||
files: [
|
||||
"iosacl.cpp",
|
||||
]
|
||||
|
||||
Group {
|
||||
fileTagsFilter: "application"
|
||||
qbs.install: true
|
||||
qbs.installDir: {
|
||||
if (qbs.targetOS.contains("windows"))
|
||||
return "";
|
||||
if (qbs.targetOS.contains("macos"))
|
||||
return project.name + ".app/Contents/MacOS/";
|
||||
return "bin";
|
||||
}
|
||||
}
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "application"
|
||||
name: "ipf"
|
||||
targetName: "fwb_ipf"
|
||||
|
||||
Depends {
|
||||
name: "Qt"
|
||||
submodules: [
|
||||
"core",
|
||||
"gui",
|
||||
"widgets"
|
||||
]
|
||||
}
|
||||
Depends { name: "libfwbuilder" }
|
||||
Depends { name: "compiler_lib" }
|
||||
Depends { name: "common" }
|
||||
Depends { name: "pflib" }
|
||||
Depends { name: "libxml2" }
|
||||
Depends { name: "libxslt" }
|
||||
Depends { name: "zlib" }
|
||||
|
||||
files: [
|
||||
"ipf.cpp",
|
||||
]
|
||||
|
||||
Group {
|
||||
fileTagsFilter: "application"
|
||||
qbs.install: true
|
||||
qbs.installDir: {
|
||||
if (qbs.targetOS.contains("windows"))
|
||||
return "";
|
||||
if (qbs.targetOS.contains("macos"))
|
||||
return project.name + ".app/Contents/MacOS/";
|
||||
return "bin";
|
||||
}
|
||||
}
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "application"
|
||||
name: "ipfw"
|
||||
targetName: "fwb_ipfw"
|
||||
|
||||
Depends {
|
||||
name: "Qt"
|
||||
submodules: [
|
||||
"core",
|
||||
"gui",
|
||||
"widgets"
|
||||
]
|
||||
}
|
||||
Depends { name: "libfwbuilder" }
|
||||
Depends { name: "compiler_lib" }
|
||||
Depends { name: "common" }
|
||||
Depends { name: "pflib" }
|
||||
Depends { name: "libxml2" }
|
||||
Depends { name: "libxslt" }
|
||||
Depends { name: "zlib" }
|
||||
|
||||
files: [
|
||||
"ipfw.cpp",
|
||||
]
|
||||
|
||||
Group {
|
||||
fileTagsFilter: "application"
|
||||
qbs.install: true
|
||||
qbs.installDir: {
|
||||
if (qbs.targetOS.contains("windows"))
|
||||
return "";
|
||||
if (qbs.targetOS.contains("macos"))
|
||||
return project.name + ".app/Contents/MacOS/";
|
||||
return "bin";
|
||||
}
|
||||
}
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "application"
|
||||
name: "ipt"
|
||||
targetName: "fwb_ipt"
|
||||
|
||||
Depends {
|
||||
name: "Qt"
|
||||
submodules: [
|
||||
"core",
|
||||
"gui",
|
||||
"widgets"
|
||||
]
|
||||
}
|
||||
|
||||
Depends { name: "libfwbuilder" }
|
||||
Depends { name: "libfwcompiler" }
|
||||
Depends { name: "compiler_lib" }
|
||||
Depends { name: "common" }
|
||||
Depends { name: "iptlib" }
|
||||
Depends { name: "libxml2" }
|
||||
Depends { name: "libxslt" }
|
||||
Depends { name: "zlib" }
|
||||
|
||||
files: [
|
||||
"ipt.cpp",
|
||||
]
|
||||
|
||||
Group {
|
||||
fileTagsFilter: "application"
|
||||
qbs.install: true
|
||||
qbs.installDir: {
|
||||
if (qbs.targetOS.contains("windows"))
|
||||
return "";
|
||||
if (qbs.targetOS.contains("macos"))
|
||||
return project.name + ".app/Contents/MacOS/";
|
||||
return "bin";
|
||||
}
|
||||
}
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "staticlibrary"
|
||||
name: "iptlib"
|
||||
|
||||
Depends { name: "cpp" }
|
||||
Depends { name: "Qt.core" }
|
||||
Depends { name: "libfwbuilder" }
|
||||
Depends { name: "compiler_lib" }
|
||||
Depends { name: "libfwcompiler" }
|
||||
Depends { name: "libxml2" }
|
||||
|
||||
Export {
|
||||
Depends { name: "cpp" }
|
||||
cpp.includePaths: product.sourceDirectory
|
||||
}
|
||||
|
||||
files: [
|
||||
"CompilerDriver_ipt.cpp",
|
||||
"CompilerDriver_ipt_run.cpp",
|
||||
"CompilerDriver_ipt_policy.cpp",
|
||||
"CompilerDriver_ipt_nat.cpp",
|
||||
"MangleTableCompiler_ipt.cpp",
|
||||
"NATCompiler_PrintRule.cpp",
|
||||
"NATCompiler_PrintRuleIptRst.cpp",
|
||||
"NATCompiler_PrintRuleIptRstEcho.cpp",
|
||||
"NATCompiler_ipt.cpp",
|
||||
"OSConfigurator_ipcop.cpp",
|
||||
"OSConfigurator_linux24.cpp",
|
||||
"OSConfigurator_linux24_interfaces.cpp",
|
||||
"OSConfigurator_secuwall.cpp",
|
||||
"OSData_ipt.cpp",
|
||||
"PolicyCompiler_PrintRule.cpp",
|
||||
"PolicyCompiler_PrintRuleIptRst.cpp",
|
||||
"PolicyCompiler_PrintRuleIptRstEcho.cpp",
|
||||
"PolicyCompiler_ipt.cpp",
|
||||
"PolicyCompiler_ipt_optimizer.cpp",
|
||||
"PolicyCompiler_secuwall.cpp",
|
||||
"RoutingCompiler_ipt.cpp",
|
||||
"RoutingCompiler_ipt_writers.cpp",
|
||||
"Preprocessor_ipt.cpp",
|
||||
"combinedAddress.cpp",
|
||||
"AutomaticRules_ipt.cpp",
|
||||
"ipt_utils.cpp"
|
||||
]
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "staticlibrary"
|
||||
name: "juniper_lib"
|
||||
targetName: "fwbjuniper"
|
||||
|
||||
Depends { name: "cpp" }
|
||||
Depends { name: "Qt.core" }
|
||||
Depends { name: "libfwbuilder" }
|
||||
Depends { name: "libfwcompiler" }
|
||||
Depends { name: "compiler_lib" }
|
||||
Depends { name: "cisco_lib" }
|
||||
Depends { name: "libxml2" }
|
||||
|
||||
Export {
|
||||
Depends { name: "cpp" }
|
||||
cpp.includePaths: product.sourceDirectory
|
||||
}
|
||||
|
||||
files: [
|
||||
"CompilerDriver_junosacl.cpp",
|
||||
"CompilerDriver_junosacl_run.cpp",
|
||||
"OSConfigurator_junos.cpp",
|
||||
"../cisco_lib/PolicyCompiler_cisco.cpp",
|
||||
"../cisco_lib/Helper.cpp",
|
||||
"PolicyCompiler_junosacl.cpp",
|
||||
"PolicyCompiler_junosacl_writers.cpp",
|
||||
"../cisco_lib/NamedObjectsAndGroupsSupport.cpp",
|
||||
"../cisco_lib/NamedObject.cpp",
|
||||
"../cisco_lib/PolicyCompiler_cisco_acls.cpp",
|
||||
"../cisco_lib/BaseObjectGroup.cpp",
|
||||
"../cisco_lib/IOSObjectGroup.cpp",
|
||||
"../cisco_lib/NamedObjectsManager.cpp",
|
||||
"../cisco_lib/ACL.cpp",
|
||||
"../cisco_lib/NXOSObjectGroup.cpp",
|
||||
"../cisco_lib/PIXObjectGroup.cpp",
|
||||
"../cisco_lib/ASA8ObjectGroup.cpp"
|
||||
]
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "application"
|
||||
name: "junosacl"
|
||||
targetName: "fwb_junosacl"
|
||||
|
||||
Depends {
|
||||
name: "Qt"
|
||||
submodules: [
|
||||
"core",
|
||||
"gui",
|
||||
"widgets"
|
||||
]
|
||||
}
|
||||
Depends { name: "libfwbuilder" }
|
||||
Depends { name: "libfwcompiler" }
|
||||
Depends { name: "compiler_lib" }
|
||||
Depends { name: "juniper_lib" }
|
||||
Depends { name: "common" }
|
||||
Depends { name: "libxml2" }
|
||||
Depends { name: "libxslt" }
|
||||
Depends { name: "zlib" }
|
||||
|
||||
files: [
|
||||
"junosacl.cpp",
|
||||
]
|
||||
|
||||
Group {
|
||||
fileTagsFilter: "application"
|
||||
qbs.install: true
|
||||
qbs.installDir: {
|
||||
if (qbs.targetOS.contains("windows"))
|
||||
return "";
|
||||
if (qbs.targetOS.contains("macos"))
|
||||
return project.name + ".app/Contents/MacOS/";
|
||||
return "bin";
|
||||
}
|
||||
}
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: ["application", "dtd_files"]
|
||||
name: "etc"
|
||||
|
||||
Group {
|
||||
files: ["fwbuilder.dtd.in"]
|
||||
fileTags: "in_dtd_files"
|
||||
}
|
||||
|
||||
InputFileRule {
|
||||
inputs: ["in_dtd_files"]
|
||||
artifactFileTags: ["dtd_files"]
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "FWBuilder DTD"
|
||||
fileTagsFilter: ["dtd_files"]
|
||||
qbs.install: true
|
||||
qbs.installDir: {
|
||||
if (qbs.targetOS.contains("macos"))
|
||||
return project.name + ".app/Contents/Resources/";
|
||||
else if (qbs.targetOS.contains("windows"))
|
||||
return "resources";
|
||||
else
|
||||
return "share/fwbuilder-"+project.version;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "application"
|
||||
name: "migration"
|
||||
|
||||
Git {
|
||||
id: git
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "FWBuilder migration files"
|
||||
files: ["*.xslt"]
|
||||
qbs.install: true
|
||||
qbs.installDir: {
|
||||
if (qbs.targetOS.contains("macos"))
|
||||
return project.name + ".app/Contents/Resources/";
|
||||
else if (qbs.targetOS.contains("windows"))
|
||||
return "resources"
|
||||
else
|
||||
return "share/fwbuilder-"+project.version
|
||||
}
|
||||
qbs.installSourceBase: ".."
|
||||
}
|
||||
}
|
@ -1,97 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "staticlibrary"
|
||||
name: "libfwbuilder"
|
||||
targetName: "fwbuilder"
|
||||
|
||||
Depends { name: "cpp" }
|
||||
Depends { name: "Qt.core" }
|
||||
Depends { name: "libxslt" }
|
||||
Depends { name: "libsnmp" }
|
||||
|
||||
Export {
|
||||
Depends { name: "cpp" }
|
||||
cpp.includePaths: product.sourceDirectory + "/.."
|
||||
}
|
||||
|
||||
cpp.includePaths: base.concat(['..'])
|
||||
cpp.cxxFlags: qbs.targetOS.contains("windows") ? base : base.concat(["-Wno-parentheses"])
|
||||
cpp.cFlags: qbs.targetOS.contains("windows") ? base : base.concat(["-Wno-shift-negative-value"])
|
||||
|
||||
files: [
|
||||
"InetAddr.cpp",
|
||||
"InetAddrMask.cpp",
|
||||
"Inet6AddrMask.cpp",
|
||||
"IPRoute.cpp",
|
||||
"Address.cpp",
|
||||
"AddressRange.cpp",
|
||||
"BackgroundOp.cpp",
|
||||
"Constants.cpp",
|
||||
"CustomService.cpp",
|
||||
"dns.cpp",
|
||||
"Firewall.cpp",
|
||||
"Cluster.cpp",
|
||||
"ClusterGroup.cpp",
|
||||
"FailoverClusterGroup.cpp",
|
||||
"StateSyncClusterGroup.cpp",
|
||||
"FWException.cpp",
|
||||
"FWIntervalReference.cpp",
|
||||
"FWObject.cpp",
|
||||
"FWObjectDatabase.cpp",
|
||||
"FWObjectDatabase_create_object.cpp",
|
||||
"FWObjectDatabase_tree_ops.cpp",
|
||||
"FWObjectDatabase_search.cpp",
|
||||
"FWObjectReference.cpp",
|
||||
"FWOptions.cpp",
|
||||
"FWReference.cpp",
|
||||
"FWServiceReference.cpp",
|
||||
"Group.cpp",
|
||||
"Host.cpp",
|
||||
"ICMPService.cpp",
|
||||
"ICMP6Service.cpp",
|
||||
"Interface.cpp",
|
||||
"InterfaceData.cpp",
|
||||
"Interval.cpp",
|
||||
"IntervalGroup.cpp",
|
||||
"IPService.cpp",
|
||||
"IPv4.cpp",
|
||||
"IPv6.cpp",
|
||||
"Library.cpp",
|
||||
"Logger.cpp",
|
||||
"Management.cpp",
|
||||
"MultiAddress.cpp",
|
||||
"NAT.cpp",
|
||||
"Network.cpp",
|
||||
"NetworkIPv6.cpp",
|
||||
"AttachedNetworks.cpp",
|
||||
"ObjectGroup.cpp",
|
||||
"DynamicGroup.cpp",
|
||||
"physAddress.cpp",
|
||||
"DNSName.cpp",
|
||||
"AddressTable.cpp",
|
||||
"Policy.cpp",
|
||||
"Resources.cpp",
|
||||
"Routing.cpp",
|
||||
"Rule.cpp",
|
||||
"RuleElement.cpp",
|
||||
"RuleSet.cpp",
|
||||
"SecuwallMgmtFile.cpp",
|
||||
"Service.cpp",
|
||||
"ServiceGroup.cpp",
|
||||
"snmp.cpp",
|
||||
"TCPService.cpp",
|
||||
"ThreadTools.cpp",
|
||||
"Tools.cpp",
|
||||
"TCPUDPService.cpp",
|
||||
"UDPService.cpp",
|
||||
"UserService.cpp",
|
||||
"TagService.cpp",
|
||||
"XMLTools.cpp",
|
||||
"ObjectMatcher.cpp",
|
||||
"ObjectMirror.cpp",
|
||||
"inet_net_ntop.c",
|
||||
"inet_net_pton.c",
|
||||
"uint128.cpp"
|
||||
]
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "staticlibrary"
|
||||
name: "libfwcompiler"
|
||||
targetName: "fwcompiler"
|
||||
|
||||
Depends { name: "cpp" }
|
||||
Depends { name: "Qt.core" }
|
||||
Depends { name: 'libxml2' }
|
||||
|
||||
cpp.includePaths: base.concat(['..'])
|
||||
|
||||
files: [
|
||||
"BaseCompiler.cpp",
|
||||
"Compiler.cpp",
|
||||
"Compiler_helpers.cpp",
|
||||
"Compiler_ops.cpp",
|
||||
"Compiler_object_match.cpp",
|
||||
"Preprocessor.cpp",
|
||||
"NATCompiler.cpp",
|
||||
"OSConfigurator.cpp",
|
||||
"PolicyCompiler.cpp",
|
||||
"ServiceRuleProcessors.cpp",
|
||||
"RoutingCompiler.cpp",
|
||||
"GroupRegistry.cpp"
|
||||
]
|
||||
}
|
@ -1,600 +0,0 @@
|
||||
import qbs 1.0
|
||||
|
||||
FWBProduct {
|
||||
type: "staticlibrary"
|
||||
name: "libgui"
|
||||
targetName: "gui"
|
||||
|
||||
Depends { name: "cpp" }
|
||||
Depends {
|
||||
name: "Qt"
|
||||
submodules: [
|
||||
"core",
|
||||
"gui",
|
||||
"widgets",
|
||||
"network",
|
||||
"printsupport"
|
||||
]
|
||||
}
|
||||
Depends { name: "libxml2" }
|
||||
Depends { name: "libfwbuilder" }
|
||||
Depends { name: "libfwcompiler" }
|
||||
Depends { name: "compiler_lib" }
|
||||
Depends { name: "cisco_lib" }
|
||||
Depends { name: "juniper_lib" }
|
||||
Depends { name: "iptlib" }
|
||||
Depends { name: "pflib" }
|
||||
Depends { name: "libsnmp" }
|
||||
|
||||
cpp.includePaths: base.concat(['../import'])
|
||||
|
||||
Export {
|
||||
Depends {
|
||||
name: "cpp"
|
||||
}
|
||||
cpp.includePaths: [product.sourceDirectory, product.buildDirectory + '/qt.headers']
|
||||
}
|
||||
|
||||
files: [
|
||||
"events.h",
|
||||
"FWWindow.h",
|
||||
"ProjectPanel.h",
|
||||
"BaseObjectDialog.h",
|
||||
"TextEditWidget.h",
|
||||
"utils.h",
|
||||
"utils_no_qt.h",
|
||||
"SSHSession.h",
|
||||
"SSHUnx.h",
|
||||
"SSHCisco.h",
|
||||
"SSHPIX.h",
|
||||
"SSHIOS.h",
|
||||
"SSHNXOS.h",
|
||||
"SSHJUNOS.h",
|
||||
"SSHProcurve.h",
|
||||
"debugDialog.h",
|
||||
"findDialog.h",
|
||||
"listOfLibrariesModel.h",
|
||||
"longTextDialog.h",
|
||||
"newGroupDialog.h",
|
||||
"filePropDialog.h",
|
||||
"DialogData.h",
|
||||
"SimpleTextEditor.h",
|
||||
"SimpleIntEditor.h",
|
||||
"TextFileEditor.h",
|
||||
"FWBSettings.h",
|
||||
"FWBTree.h",
|
||||
"RCS.h",
|
||||
"RCSFilePreview.h",
|
||||
"FWObjectClipboard.h",
|
||||
"platforms.h",
|
||||
"global.h",
|
||||
"printerStream.h",
|
||||
"PrintingProgressDialog.h",
|
||||
"PrintingController.h",
|
||||
"FWObjectPropertiesFactory.h",
|
||||
"ObjectManipulator.h",
|
||||
"ObjectEditor.h",
|
||||
"ObjectEditorDockWidget.h",
|
||||
"FWObjectDrag.h",
|
||||
"ObjectTreeView.h",
|
||||
"ObjectListView.h",
|
||||
"ObjectIconView.h",
|
||||
"ObjectTreeViewItem.h",
|
||||