[DEV] update Build interface

This commit is contained in:
Edouard DUPIN 2015-09-14 21:11:04 +02:00
parent 80215342c8
commit 074db00d45
2 changed files with 44 additions and 13 deletions

View File

@ -381,7 +381,7 @@ void draw::parseColor(const char* _input, struct agg::rgba8& color)
color.g = (green | green << 4);
color.b = (blue | blue << 4);
} else {
TK_ERROR(" pb in parsing the color : \"" << inputData << "\"");
DRAW_ERROR(" pb in parsing the color : \"" << inputData << "\"");
}
} else if (len == 5) {
int32_t red=0, green=0, blue=0, alpha=0;
@ -391,7 +391,7 @@ void draw::parseColor(const char* _input, struct agg::rgba8& color)
color.b = (blue | blue << 4);
color.a = (alpha | alpha << 4);
} else {
TK_ERROR(" pb in parsing the color : \"" << inputData << "\"");
DRAW_ERROR(" pb in parsing the color : \"" << inputData << "\"");
}
} else if (len == 7) {
int32_t red=0, green=0, blue=0;
@ -400,7 +400,7 @@ void draw::parseColor(const char* _input, struct agg::rgba8& color)
color.g = green;
color.b = blue;
} else {
TK_ERROR(" pb in parsing the color : \"" << inputData << "\"");
DRAW_ERROR(" pb in parsing the color : \"" << inputData << "\"");
}
} else if (len == 9) {
int32_t red=0, green=0, blue=0, alpha=0;
@ -410,10 +410,10 @@ void draw::parseColor(const char* _input, struct agg::rgba8& color)
color.b = blue;
color.a = alpha;
} else {
TK_ERROR(" pb in parsing the color : \"" << inputData << "\"");
DRAW_ERROR(" pb in parsing the color : \"" << inputData << "\"");
}
} else {
TK_ERROR(" pb in parsing the color : \"" << inputData << "\" == > unknown methode ...");
DRAW_ERROR(" pb in parsing the color : \"" << inputData << "\" == > unknown methode ...");
}
} else if( 4 <= len
&& inputData[0] == 'r'
@ -448,7 +448,7 @@ void draw::parseColor(const char* _input, struct agg::rgba8& color)
color.g = (uint8_t)(fgreen * 255.);
color.b = (uint8_t)(fblue * 255.);
} else {
TK_ERROR(" pb in parsing the color : \"" << inputData << "\" == > unknown methode ...");
DRAW_ERROR(" pb in parsing the color : \"" << inputData << "\" == > unknown methode ...");
}
} else {
bool findIt = false;
@ -463,10 +463,10 @@ void draw::parseColor(const char* _input, struct agg::rgba8& color)
}
// not find color ...
if (findIt == false) {
TK_ERROR(" pb in parsing the color : \"" << inputData << "\" not find ...");
DRAW_ERROR(" pb in parsing the color : \"" << inputData << "\" not find ...");
}
}
TK_VERBOSE("Parse color : \"" << inputData << "\" == > " << color);
DRAW_VERBOSE("Parse color : \"" << inputData << "\" == > " << color);
}
std::ostream& agg::operator <<(std::ostream &os, const struct agg::rgba8& obj)

View File

@ -47,13 +47,44 @@ def create(target):
'agg/agg_vcgen_stroke.cpp',
'agg/agg_vpgen_clip_polygon.cpp',
'agg/agg_vpgen_clip_polyline.cpp',
'agg/agg_vpgen_segmentator.cpp'])
'agg/agg_vpgen_segmentator.cpp'
])
myModule.add_header_file([
'agg/agg_arc.h',
'agg/agg_array.h',
'agg/agg_arrowhead.h',
'agg/agg_bezier_arc.h',
'agg/agg_bspline.h',
'agg/agg_curves.h',
'agg/agg_embedded_raster_fonts.h',
'agg/agg_font_freetype.h',
'agg/agg_gsv_text.h',
'agg/agg_image_filters.h',
'agg/agg_line_aa_basics.h',
'agg/agg_rounded_rect.h',
'agg/agg_trans_affine.h',
'agg/agg_trans_double_path.h',
'agg/agg_trans_single_path.h',
'agg/agg_trans_warp_magnifier.h',
'agg/agg_vcgen_bspline.h',
'agg/agg_vcgen_contour.h',
'agg/agg_vcgen_dash.h',
'agg/agg_vcgen_markers_term.h',
'agg/agg_vcgen_smooth_poly1.h',
'agg/agg_vcgen_stroke.h',
'agg/agg_vpgen_clip_polygon.h',
'agg/agg_vpgen_clip_polyline.h',
'agg/agg_vpgen_segmentator.h'
])
#ewol abstraction of the graphic librairies :
# TODO : Maybe deprecated ...
myModule.add_src_file([
'draw/debug.cpp',
'draw/Color.cpp',
'draw/Image.cpp'])
# add the currrent module at the
'draw/Image.cpp'
])
myModule.add_header_file([
'draw/Color.h',
'draw/Image.h'
])
return myModule