1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-21 09:33:53 +03:00

M #-: Fix parser building

It adds symbolic links to header files automatically included by yacc.
This commit is contained in:
Ruben S. Montero 2024-08-02 10:28:35 +02:00
parent 39260d4369
commit 69f0f68e9e
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87
10 changed files with 15 additions and 6 deletions

View File

@ -25,6 +25,7 @@ from SCons.Environment import Environment
from SCons.Script import ARGUMENTS, SConscript
sys.path.append("./share/scons")
from lex_bison import *
# Get git version
try:
@ -58,6 +59,10 @@ if 'LDFLAGS' in os.environ:
else:
os.environ['LDFLAGS'] = ""
# Add builders for flex and bison
add_lex(main_env)
add_bison(main_env)
# Include dirs
main_env.Append(CPPPATH=[
cwd+'/include',
@ -194,12 +199,6 @@ else:
build_parsers = ARGUMENTS.get('parsers', 'no')
if build_parsers == 'yes':
main_env.Append(parsers='yes')
from lex_bison import *
# Add builders for flex and bison
add_lex(main_env)
add_bison(main_env)
else:
main_env.Append(parsers='no')

1
src/parsers/expr_arith.hh Symbolic link
View File

@ -0,0 +1 @@
expr_arith.h

1
src/parsers/expr_bool.hh Symbolic link
View File

@ -0,0 +1 @@
expr_bool.h

1
src/parsers/expr_parser.hh Symbolic link
View File

@ -0,0 +1 @@
expr_parser.h

View File

@ -0,0 +1 @@
template_parser.h

View File

@ -0,0 +1 @@
template_syntax.h

View File

@ -0,0 +1 @@
vm_file_var_syntax.h

View File

@ -0,0 +1 @@
vm_var_parser.h

View File

@ -0,0 +1 @@
vm_var_syntax.h

View File

@ -25,6 +25,8 @@
#include <string.h>
#include "VirtualMachinePool.h"
#include "VirtualNetworkPool.h"
#include "ImagePool.h"
#include "VirtualMachine.h"
#include "Nebula.h"