libnxsrv and nxcore moved to VS2005 (nxcore cannot be linked because libnxsl not...
[public/netxms.git] / tools / flex_bison.rule
index 71afcc4..5346153 100644 (file)
@@ -7,9 +7,9 @@
                <CustomBuildRule\r
                        Name="FLEX"\r
                        DisplayName="FLEX"\r
-                       CommandLine="flex [AllOptions] -olex.$(InputName).c $(InputName).l"\r
-                       Outputs="lex.$(InputName).c"\r
-                       AdditionalDependencies="$(InputName).tab.h"\r
+                       CommandLine="flex [AllOptions] -olex.$(InputName).cpp $(InputName).l"\r
+                       Outputs="lex.$(InputName).cpp"\r
+                       AdditionalDependencies="$(InputName).tab.hpp"\r
                        FileExtensions="*.l"\r
                        ExecutionDescription="Running FLEX on $(InputName).l"\r
                        SupportsFileBatching="true"\r
                                        Switch="-P[value]"\r
                                        DefaultValue="yy"\r
                                />\r
+                               <BooleanProperty\r
+                                       Name="USE8BIT"\r
+                                       DisplayName="Generate 8-bit scanner"\r
+                                       Description="Generate 8-bit scanner"\r
+                                       Switch="-8"\r
+                               />\r
+                               <BooleanProperty\r
+                                       Name="NOUNISTD"\r
+                                       DisplayName="Do not include unistd.h"\r
+                                       Description="Do not include unistd.h"\r
+                                       Switch="--nounistd"\r
+                               />\r
+                               <BooleanProperty\r
+                                       Name="BATCH"\r
+                                       DisplayName="Generate batch scanner"\r
+                                       Description="Generate batch scanner"\r
+                                       Switch="-B"\r
+                               />\r
+                               <BooleanProperty\r
+                                       Name="FAST"\r
+                                       DisplayName="Generate fast scanner"\r
+                                       Description="Generate fast, large scanner"\r
+                                       Switch="-f"\r
+                               />\r
                        </Properties>\r
                </CustomBuildRule>\r
                <CustomBuildRule\r
                        Name="BISON"\r
                        DisplayName="BISON"\r
-                       CommandLine="bison -b $(InputName) -d -t -v [AllOptions] $(InputName).y"\r
-                       Outputs="$(InputName).tab.c;$(InputName).tab.h"\r
+                       CommandLine="bison -b $(InputName) -o $(InputName).tab.cpp -d -t -v [AllOptions] $(InputName).y"\r
+                       Outputs="$(InputName).tab.cpp;$(InputName).tab.hpp"\r
                        FileExtensions="*.y"\r
                        ExecutionDescription="Running BISON on $(InputName).y"\r
                        >\r