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:
parent
39260d4369
commit
69f0f68e9e
11
SConstruct
11
SConstruct
@ -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
1
src/parsers/expr_arith.hh
Symbolic link
@ -0,0 +1 @@
|
||||
expr_arith.h
|
1
src/parsers/expr_bool.hh
Symbolic link
1
src/parsers/expr_bool.hh
Symbolic link
@ -0,0 +1 @@
|
||||
expr_bool.h
|
1
src/parsers/expr_parser.hh
Symbolic link
1
src/parsers/expr_parser.hh
Symbolic link
@ -0,0 +1 @@
|
||||
expr_parser.h
|
1
src/parsers/template_parser.hh
Symbolic link
1
src/parsers/template_parser.hh
Symbolic link
@ -0,0 +1 @@
|
||||
template_parser.h
|
1
src/parsers/template_syntax.hh
Symbolic link
1
src/parsers/template_syntax.hh
Symbolic link
@ -0,0 +1 @@
|
||||
template_syntax.h
|
1
src/parsers/vm_file_var_syntax.hh
Symbolic link
1
src/parsers/vm_file_var_syntax.hh
Symbolic link
@ -0,0 +1 @@
|
||||
vm_file_var_syntax.h
|
1
src/parsers/vm_var_parser.hh
Symbolic link
1
src/parsers/vm_var_parser.hh
Symbolic link
@ -0,0 +1 @@
|
||||
vm_var_parser.h
|
1
src/parsers/vm_var_syntax.hh
Symbolic link
1
src/parsers/vm_var_syntax.hh
Symbolic link
@ -0,0 +1 @@
|
||||
vm_var_syntax.h
|
@ -25,6 +25,8 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "VirtualMachinePool.h"
|
||||
#include "VirtualNetworkPool.h"
|
||||
#include "ImagePool.h"
|
||||
#include "VirtualMachine.h"
|
||||
#include "Nebula.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user