mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-10 12:44:53 +00:00
Modified makefile.lst for cpp files.
Renamed src/test to src/tests.
This commit is contained in:
parent
a587132ffe
commit
1e44f9a454
@ -1,3 +1,9 @@
|
|||||||
|
2008-09-30 David A. Capello <davidcapello@gmail.com>
|
||||||
|
|
||||||
|
* src/tests/: Renamed src/test to src/tests
|
||||||
|
|
||||||
|
* makefile.lst: Project converted to C++
|
||||||
|
|
||||||
2008-09-29 David A. Capello <davidcapello@gmail.com>
|
2008-09-29 David A. Capello <davidcapello@gmail.com>
|
||||||
|
|
||||||
* src/widgets/fileview.c (fileview_msg_proc): Fixed a bug when the
|
* src/widgets/fileview.c (fileview_msg_proc): Fixed a bug when the
|
||||||
|
10
makefile.gcc
10
makefile.gcc
@ -165,18 +165,18 @@ endif
|
|||||||
######################################################################
|
######################################################################
|
||||||
# Rules to make tests
|
# Rules to make tests
|
||||||
|
|
||||||
src/test/%$(EXE): src/test/%.cpp $(COMMON_OBJS)
|
src/tests/%$(EXE): src/tests/%.cpp $(COMMON_OBJS)
|
||||||
$(CPP) $(CFLAGS) -o $@ $^ $(LFLAGS) $(LFLAGS_LAST)
|
$(CPP) $(CFLAGS) -o $@ $^ $(LFLAGS) $(LFLAGS_LAST)
|
||||||
|
|
||||||
src/test/raster/%$(EXE): src/test/raster/%.cpp $(COMMON_OBJS)
|
src/tests/raster/%$(EXE): src/tests/raster/%.cpp $(COMMON_OBJS)
|
||||||
$(CPP) $(CFLAGS) -o $@ $^ $(LFLAGS) $(LFLAGS_LAST)
|
$(CPP) $(CFLAGS) -o $@ $^ $(LFLAGS) $(LFLAGS_LAST)
|
||||||
|
|
||||||
src/test/jinete/%$(EXE): src/test/jinete/%.cpp $(COMMON_OBJS)
|
src/tests/jinete/%$(EXE): src/tests/jinete/%.cpp $(COMMON_OBJS)
|
||||||
$(CPP) $(CFLAGS) -o $@ $^ $(LFLAGS) $(LFLAGS_LAST)
|
$(CPP) $(CFLAGS) -o $@ $^ $(LFLAGS) $(LFLAGS_LAST)
|
||||||
|
|
||||||
test: $(TESTS)
|
tests: $(TESTS)
|
||||||
|
|
||||||
runtest: $(AUTOTESTS)
|
runtests: $(AUTOTESTS)
|
||||||
@-$(foreach TEST, $(AUTOTESTS), \
|
@-$(foreach TEST, $(AUTOTESTS), \
|
||||||
echo ./$(TEST) "=====================" ; \
|
echo ./$(TEST) "=====================" ; \
|
||||||
./$(TEST) ; \
|
./$(TEST) ; \
|
||||||
|
428
makefile.lst
428
makefile.lst
@ -6,215 +6,215 @@
|
|||||||
ASE = aseprite$(EXE)
|
ASE = aseprite$(EXE)
|
||||||
|
|
||||||
COMMON_SOURCES = \
|
COMMON_SOURCES = \
|
||||||
src/commands/cmd_about.c \
|
src/commands/cmd_about.cpp \
|
||||||
src/commands/cmd_advanced_mode.c \
|
src/commands/cmd_advanced_mode.cpp \
|
||||||
src/commands/cmd_background_from_layer.c \
|
src/commands/cmd_background_from_layer.cpp \
|
||||||
src/commands/cmd_cel_properties.c \
|
src/commands/cmd_cel_properties.cpp \
|
||||||
src/commands/cmd_change_image_type.c \
|
src/commands/cmd_change_image_type.cpp \
|
||||||
src/commands/cmd_clear.c \
|
src/commands/cmd_clear.cpp \
|
||||||
src/commands/cmd_close_file.c \
|
src/commands/cmd_close_file.cpp \
|
||||||
src/commands/cmd_configure_screen.c \
|
src/commands/cmd_configure_screen.cpp \
|
||||||
src/commands/cmd_configure_tools.c \
|
src/commands/cmd_configure_tools.cpp \
|
||||||
src/commands/cmd_copy.c \
|
src/commands/cmd_copy.cpp \
|
||||||
src/commands/cmd_copy_cel.c \
|
src/commands/cmd_copy_cel.cpp \
|
||||||
src/commands/cmd_crop.c \
|
src/commands/cmd_crop.cpp \
|
||||||
src/commands/cmd_cut.c \
|
src/commands/cmd_cut.cpp \
|
||||||
src/commands/cmd_deselect_mask.c \
|
src/commands/cmd_deselect_mask.cpp \
|
||||||
src/commands/cmd_draw_text.c \
|
src/commands/cmd_draw_text.cpp \
|
||||||
src/commands/cmd_drawing_tools.c \
|
src/commands/cmd_drawing_tools.cpp \
|
||||||
src/commands/cmd_duplicate_layer.c \
|
src/commands/cmd_duplicate_layer.cpp \
|
||||||
src/commands/cmd_duplicate_sprite.c \
|
src/commands/cmd_duplicate_sprite.cpp \
|
||||||
src/commands/cmd_exit.c \
|
src/commands/cmd_exit.cpp \
|
||||||
src/commands/cmd_eyedropper_tool.c \
|
src/commands/cmd_eyedropper_tool.cpp \
|
||||||
src/commands/cmd_film_editor.c \
|
src/commands/cmd_film_editor.cpp \
|
||||||
src/commands/cmd_flatten_layers.c \
|
src/commands/cmd_flatten_layers.cpp \
|
||||||
src/commands/cmd_flip.c \
|
src/commands/cmd_flip.cpp \
|
||||||
src/commands/cmd_frame_properties.c \
|
src/commands/cmd_frame_properties.cpp \
|
||||||
src/commands/cmd_goto_frame.c \
|
src/commands/cmd_goto_frame.cpp \
|
||||||
src/commands/cmd_goto_layer.c \
|
src/commands/cmd_goto_layer.cpp \
|
||||||
src/commands/cmd_grid.c \
|
src/commands/cmd_grid.cpp \
|
||||||
src/commands/cmd_invert_mask.c \
|
src/commands/cmd_invert_mask.cpp \
|
||||||
src/commands/cmd_layer_from_background.c \
|
src/commands/cmd_layer_from_background.cpp \
|
||||||
src/commands/cmd_layer_properties.c \
|
src/commands/cmd_layer_properties.cpp \
|
||||||
src/commands/cmd_load_mask.c \
|
src/commands/cmd_load_mask.cpp \
|
||||||
src/commands/cmd_mask_all.c \
|
src/commands/cmd_mask_all.cpp \
|
||||||
src/commands/cmd_mask_by_color.c \
|
src/commands/cmd_mask_by_color.cpp \
|
||||||
src/commands/cmd_merge_down_layer.c \
|
src/commands/cmd_merge_down_layer.cpp \
|
||||||
src/commands/cmd_move_cel.c \
|
src/commands/cmd_move_cel.cpp \
|
||||||
src/commands/cmd_new_file.c \
|
src/commands/cmd_new_file.cpp \
|
||||||
src/commands/cmd_new_frame.c \
|
src/commands/cmd_new_frame.cpp \
|
||||||
src/commands/cmd_new_layer.c \
|
src/commands/cmd_new_layer.cpp \
|
||||||
src/commands/cmd_new_layer_set.c \
|
src/commands/cmd_new_layer_set.cpp \
|
||||||
src/commands/cmd_open_file.c \
|
src/commands/cmd_open_file.cpp \
|
||||||
src/commands/cmd_options.c \
|
src/commands/cmd_options.cpp \
|
||||||
src/commands/cmd_palette_editor.c \
|
src/commands/cmd_palette_editor.cpp \
|
||||||
src/commands/cmd_paste.c \
|
src/commands/cmd_paste.cpp \
|
||||||
src/commands/cmd_play_animation.c \
|
src/commands/cmd_play_animation.cpp \
|
||||||
src/commands/cmd_play_flic.c \
|
src/commands/cmd_play_flic.cpp \
|
||||||
src/commands/cmd_preview.c \
|
src/commands/cmd_preview.cpp \
|
||||||
src/commands/cmd_record_screen.c \
|
src/commands/cmd_record_screen.cpp \
|
||||||
src/commands/cmd_redo.c \
|
src/commands/cmd_redo.cpp \
|
||||||
src/commands/cmd_refresh.c \
|
src/commands/cmd_refresh.cpp \
|
||||||
src/commands/cmd_remove_cel.c \
|
src/commands/cmd_remove_cel.cpp \
|
||||||
src/commands/cmd_remove_frame.c \
|
src/commands/cmd_remove_frame.cpp \
|
||||||
src/commands/cmd_remove_layer.c \
|
src/commands/cmd_remove_layer.cpp \
|
||||||
src/commands/cmd_reselect_mask.c \
|
src/commands/cmd_reselect_mask.cpp \
|
||||||
src/commands/cmd_save_file.c \
|
src/commands/cmd_save_file.cpp \
|
||||||
src/commands/cmd_save_mask.c \
|
src/commands/cmd_save_mask.cpp \
|
||||||
src/commands/cmd_screen_shot.c \
|
src/commands/cmd_screen_shot.cpp \
|
||||||
src/commands/cmd_select_file.c \
|
src/commands/cmd_select_file.cpp \
|
||||||
src/commands/cmd_sprite_editor.c \
|
src/commands/cmd_sprite_editor.cpp \
|
||||||
src/commands/cmd_sprite_properties.c \
|
src/commands/cmd_sprite_properties.cpp \
|
||||||
src/commands/cmd_switch_colors.c \
|
src/commands/cmd_switch_colors.cpp \
|
||||||
src/commands/cmd_tips.c \
|
src/commands/cmd_tips.cpp \
|
||||||
src/commands/cmd_undo.c \
|
src/commands/cmd_undo.cpp \
|
||||||
src/commands/commands.c \
|
src/commands/commands.cpp \
|
||||||
src/commands/fx/cmd_color_curve.c \
|
src/commands/fx/cmd_color_curve.cpp \
|
||||||
src/commands/fx/cmd_convolution_matrix.c \
|
src/commands/fx/cmd_convolution_matrix.cpp \
|
||||||
src/commands/fx/cmd_despeckle.c \
|
src/commands/fx/cmd_despeckle.cpp \
|
||||||
src/commands/fx/cmd_invert_color.c \
|
src/commands/fx/cmd_invert_color.cpp \
|
||||||
src/commands/fx/cmd_replace_color.c \
|
src/commands/fx/cmd_replace_color.cpp \
|
||||||
src/commands/fx/effectbg.c \
|
src/commands/fx/effectbg.cpp \
|
||||||
src/console/console.c \
|
src/console/console.cpp \
|
||||||
src/core/app.c \
|
src/core/app.cpp \
|
||||||
src/core/cfg.c \
|
src/core/cfg.cpp \
|
||||||
src/core/color.c \
|
src/core/color.cpp \
|
||||||
src/core/config.c \
|
src/core/config.cpp \
|
||||||
src/core/core.c \
|
src/core/core.cpp \
|
||||||
src/core/dirs.c \
|
src/core/dirs.cpp \
|
||||||
src/core/file_system.c \
|
src/core/file_system.cpp \
|
||||||
src/core/modules.c \
|
src/core/modules.cpp \
|
||||||
src/dialogs/aniedit.c \
|
src/dialogs/aniedit.cpp \
|
||||||
src/dialogs/canvasze.c \
|
src/dialogs/canvasze.cpp \
|
||||||
src/dialogs/drawtext.c \
|
src/dialogs/drawtext.cpp \
|
||||||
src/dialogs/filesel.c \
|
src/dialogs/filesel.cpp \
|
||||||
src/dialogs/maskcol.c \
|
src/dialogs/maskcol.cpp \
|
||||||
src/dialogs/options.c \
|
src/dialogs/options.cpp \
|
||||||
src/dialogs/playfli.c \
|
src/dialogs/playfli.cpp \
|
||||||
src/dialogs/repo.c \
|
src/dialogs/repo.cpp \
|
||||||
src/dialogs/tips.c \
|
src/dialogs/tips.cpp \
|
||||||
src/dialogs/vectmap.c \
|
src/dialogs/vectmap.cpp \
|
||||||
src/effect/colcurve.c \
|
src/effect/colcurve.cpp \
|
||||||
src/effect/convmatr.c \
|
src/effect/convmatr.cpp \
|
||||||
src/effect/effect.c \
|
src/effect/effect.cpp \
|
||||||
src/effect/invrtcol.c \
|
src/effect/invrtcol.cpp \
|
||||||
src/effect/median.c \
|
src/effect/median.cpp \
|
||||||
src/effect/replcol.c \
|
src/effect/replcol.cpp \
|
||||||
src/file/ase_format.c \
|
src/file/ase_format.cpp \
|
||||||
src/file/bmp_format.c \
|
src/file/bmp_format.cpp \
|
||||||
src/file/file.c \
|
src/file/file.cpp \
|
||||||
src/file/fli/fli.c \
|
src/file/fli/fli.cpp \
|
||||||
src/file/fli_format.c \
|
src/file/fli_format.cpp \
|
||||||
src/file/format_options.c \
|
src/file/format_options.cpp \
|
||||||
src/file/gif/format.c \
|
src/file/gif/format.cpp \
|
||||||
src/file/gif/lzw.c \
|
src/file/gif/lzw.cpp \
|
||||||
src/file/gif_format.c \
|
src/file/gif_format.cpp \
|
||||||
src/file/ico_format.c \
|
src/file/ico_format.cpp \
|
||||||
src/file/jpeg_format.c \
|
src/file/jpeg_format.cpp \
|
||||||
src/file/pcx_format.c \
|
src/file/pcx_format.cpp \
|
||||||
src/file/png_format.c \
|
src/file/png_format.cpp \
|
||||||
src/file/tga_format.c \
|
src/file/tga_format.cpp \
|
||||||
src/intl/intl.c \
|
src/intl/intl.cpp \
|
||||||
src/intl/msgids.c \
|
src/intl/msgids.cpp \
|
||||||
src/jinete/jaccel.c \
|
src/jinete/jaccel.cpp \
|
||||||
src/jinete/jalert.c \
|
src/jinete/jalert.cpp \
|
||||||
src/jinete/jbox.c \
|
src/jinete/jbox.cpp \
|
||||||
src/jinete/jbutton.c \
|
src/jinete/jbutton.cpp \
|
||||||
src/jinete/jclipboard.c \
|
src/jinete/jclipboard.cpp \
|
||||||
src/jinete/jcombobox.c \
|
src/jinete/jcombobox.cpp \
|
||||||
src/jinete/jdraw.c \
|
src/jinete/jdraw.cpp \
|
||||||
src/jinete/jentry.c \
|
src/jinete/jentry.cpp \
|
||||||
src/jinete/jgrid.c \
|
src/jinete/jgrid.cpp \
|
||||||
src/jinete/jfile.c \
|
src/jinete/jfile.cpp \
|
||||||
src/jinete/jfilesel.c \
|
src/jinete/jfilesel.cpp \
|
||||||
src/jinete/jfont.c \
|
src/jinete/jfont.cpp \
|
||||||
src/jinete/jfontbmp.c \
|
src/jinete/jfontbmp.cpp \
|
||||||
src/jinete/jhook.c \
|
src/jinete/jhook.cpp \
|
||||||
src/jinete/jimage.c \
|
src/jinete/jimage.cpp \
|
||||||
src/jinete/jintern.c \
|
src/jinete/jintern.cpp \
|
||||||
src/jinete/jlabel.c \
|
src/jinete/jlabel.cpp \
|
||||||
src/jinete/jlist.c \
|
src/jinete/jlist.cpp \
|
||||||
src/jinete/jlistbox.c \
|
src/jinete/jlistbox.cpp \
|
||||||
src/jinete/jmanager.c \
|
src/jinete/jmanager.cpp \
|
||||||
src/jinete/jmem.c \
|
src/jinete/jmem.cpp \
|
||||||
src/jinete/jmenu.c \
|
src/jinete/jmenu.cpp \
|
||||||
src/jinete/jmessage.c \
|
src/jinete/jmessage.cpp \
|
||||||
src/jinete/jmutex.c \
|
src/jinete/jmutex.cpp \
|
||||||
src/jinete/jpanel.c \
|
src/jinete/jpanel.cpp \
|
||||||
src/jinete/jquickmenu.c \
|
src/jinete/jquickmenu.cpp \
|
||||||
src/jinete/jrect.c \
|
src/jinete/jrect.cpp \
|
||||||
src/jinete/jregion.c \
|
src/jinete/jregion.cpp \
|
||||||
src/jinete/jsep.c \
|
src/jinete/jsep.cpp \
|
||||||
src/jinete/jslider.c \
|
src/jinete/jslider.cpp \
|
||||||
src/jinete/jstream.c \
|
src/jinete/jstream.cpp \
|
||||||
src/jinete/jsystem.c \
|
src/jinete/jsystem.cpp \
|
||||||
src/jinete/jtextbox.c \
|
src/jinete/jtextbox.cpp \
|
||||||
src/jinete/jtheme.c \
|
src/jinete/jtheme.cpp \
|
||||||
src/jinete/jthread.c \
|
src/jinete/jthread.cpp \
|
||||||
src/jinete/jtooltips.c \
|
src/jinete/jtooltips.cpp \
|
||||||
src/jinete/jview.c \
|
src/jinete/jview.cpp \
|
||||||
src/jinete/jwidget.c \
|
src/jinete/jwidget.cpp \
|
||||||
src/jinete/jwindow.c \
|
src/jinete/jwindow.cpp \
|
||||||
src/jinete/jxml.c \
|
src/jinete/jxml.cpp \
|
||||||
src/jinete/themes/jstandard_theme.c \
|
src/jinete/themes/jstandard_theme.cpp \
|
||||||
src/modules/editors.c \
|
src/modules/editors.cpp \
|
||||||
src/modules/gfx.c \
|
src/modules/gfx.cpp \
|
||||||
src/modules/gui.c \
|
src/modules/gui.cpp \
|
||||||
src/modules/palettes.c \
|
src/modules/palettes.cpp \
|
||||||
src/modules/recent.c \
|
src/modules/recent.cpp \
|
||||||
src/modules/rootmenu.c \
|
src/modules/rootmenu.cpp \
|
||||||
src/modules/sprites.c \
|
src/modules/sprites.cpp \
|
||||||
src/modules/tools.c \
|
src/modules/tools.cpp \
|
||||||
src/raster/algo.c \
|
src/raster/algo.cpp \
|
||||||
src/raster/algofill.c \
|
src/raster/algofill.cpp \
|
||||||
src/raster/blend.c \
|
src/raster/blend.cpp \
|
||||||
src/raster/brush.c \
|
src/raster/brush.cpp \
|
||||||
src/raster/cel.c \
|
src/raster/cel.cpp \
|
||||||
src/raster/dirty.c \
|
src/raster/dirty.cpp \
|
||||||
src/raster/gfxobj.c \
|
src/raster/gfxobj.cpp \
|
||||||
src/raster/image.c \
|
src/raster/image.cpp \
|
||||||
src/raster/layer.c \
|
src/raster/layer.cpp \
|
||||||
src/raster/mask.c \
|
src/raster/mask.cpp \
|
||||||
src/raster/palette.c \
|
src/raster/palette.cpp \
|
||||||
src/raster/path.c \
|
src/raster/path.cpp \
|
||||||
src/raster/quant.c \
|
src/raster/quant.cpp \
|
||||||
src/raster/rotate.c \
|
src/raster/rotate.cpp \
|
||||||
src/raster/sprite.c \
|
src/raster/sprite.cpp \
|
||||||
src/raster/stock.c \
|
src/raster/stock.cpp \
|
||||||
src/raster/undo.c \
|
src/raster/undo.cpp \
|
||||||
src/util/autocrop.c \
|
src/util/autocrop.cpp \
|
||||||
src/util/boundary.c \
|
src/util/boundary.cpp \
|
||||||
src/util/celmove.c \
|
src/util/celmove.cpp \
|
||||||
src/util/clipbrd.c \
|
src/util/clipbrd.cpp \
|
||||||
src/util/col_file.c \
|
src/util/col_file.cpp \
|
||||||
src/util/filetoks.c \
|
src/util/filetoks.cpp \
|
||||||
src/util/functions.c \
|
src/util/functions.cpp \
|
||||||
src/util/hash.c \
|
src/util/hash.cpp \
|
||||||
src/util/misc.c \
|
src/util/misc.cpp \
|
||||||
src/util/msk_file.c \
|
src/util/msk_file.cpp \
|
||||||
src/util/pic_file.c \
|
src/util/pic_file.cpp \
|
||||||
src/util/quantize.c \
|
src/util/quantize.cpp \
|
||||||
src/util/recscr.c \
|
src/util/recscr.cpp \
|
||||||
src/util/render.c \
|
src/util/render.cpp \
|
||||||
src/util/thmbnail.c \
|
src/util/thmbnail.cpp \
|
||||||
src/widgets/colbar.c \
|
src/widgets/colbar.cpp \
|
||||||
src/widgets/colbut.c \
|
src/widgets/colbut.cpp \
|
||||||
src/widgets/colsel.c \
|
src/widgets/colsel.cpp \
|
||||||
src/widgets/colview.c \
|
src/widgets/colview.cpp \
|
||||||
src/widgets/curvedit.c \
|
src/widgets/curvedit.cpp \
|
||||||
src/widgets/editor/click.c \
|
src/widgets/editor/click.cpp \
|
||||||
src/widgets/editor/cursor.c \
|
src/widgets/editor/cursor.cpp \
|
||||||
src/widgets/editor/editor.c \
|
src/widgets/editor/editor.cpp \
|
||||||
src/widgets/editor/keys.c \
|
src/widgets/editor/keys.cpp \
|
||||||
src/widgets/fileview.c \
|
src/widgets/fileview.cpp \
|
||||||
src/widgets/groupbut.c \
|
src/widgets/groupbut.cpp \
|
||||||
src/widgets/menuitem.c \
|
src/widgets/menuitem.cpp \
|
||||||
src/widgets/paledit.c \
|
src/widgets/paledit.cpp \
|
||||||
src/widgets/preview.c \
|
src/widgets/preview.cpp \
|
||||||
src/widgets/statebar.c \
|
src/widgets/statebar.cpp \
|
||||||
src/widgets/tabs.c \
|
src/widgets/tabs.cpp \
|
||||||
src/widgets/target.c \
|
src/widgets/target.cpp \
|
||||||
src/widgets/toolbar.c
|
src/widgets/toolbar.cpp
|
||||||
|
|
||||||
ifdef USE_386_ASM
|
ifdef USE_386_ASM
|
||||||
COMMON_SOURCES += \
|
COMMON_SOURCES += \
|
||||||
@ -226,7 +226,7 @@ COMMON_OBJS = $(addprefix $(OBJ_DIR)/, \
|
|||||||
$(addsuffix $(OBJ), \
|
$(addsuffix $(OBJ), \
|
||||||
$(notdir $(basename $(COMMON_SOURCES)))))
|
$(notdir $(basename $(COMMON_SOURCES)))))
|
||||||
|
|
||||||
ASE_SOURCES = src/main.c $(COMMON_SOURCES)
|
ASE_SOURCES = src/main.cpp $(COMMON_SOURCES)
|
||||||
|
|
||||||
ASE_OBJS = $(addprefix $(OBJ_DIR)/, \
|
ASE_OBJS = $(addprefix $(OBJ_DIR)/, \
|
||||||
$(addsuffix $(OBJ), \
|
$(addsuffix $(OBJ), \
|
||||||
@ -480,10 +480,10 @@ THIRD_PARTY_LIBS = \
|
|||||||
|
|
||||||
TESTS = $(addsuffix $(EXE), \
|
TESTS = $(addsuffix $(EXE), \
|
||||||
$(basename \
|
$(basename \
|
||||||
$(wildcard src/test/*.c) \
|
$(wildcard src/tests/*.cpp) \
|
||||||
$(wildcard src/test/raster/*.c) \
|
$(wildcard src/tests/raster/*.cpp) \
|
||||||
$(wildcard src/test/jinete/*.c)))
|
$(wildcard src/tests/jinete/*.cpp)))
|
||||||
|
|
||||||
AUTOTESTS = $(addsuffix $(EXE), \
|
AUTOTESTS = $(addsuffix $(EXE), \
|
||||||
$(basename \
|
$(basename \
|
||||||
$(wildcard src/test/*.c)))
|
$(wildcard src/tests/*.cpp)))
|
||||||
|
86
misc/dist.sh
86
misc/dist.sh
@ -54,17 +54,6 @@ libpng_files="third_party/libpng/*.[ch] \
|
|||||||
third_party/libpng/TODO \
|
third_party/libpng/TODO \
|
||||||
third_party/libpng/Y2KINFO"
|
third_party/libpng/Y2KINFO"
|
||||||
|
|
||||||
lua_files="third_party/lua/COPYRIGHT \
|
|
||||||
third_party/lua/HISTORY \
|
|
||||||
third_party/lua/README \
|
|
||||||
third_party/lua/doc/idx.html \
|
|
||||||
third_party/lua/doc/index.html \
|
|
||||||
third_party/lua/doc/manual.html \
|
|
||||||
third_party/lua/include/*.h \
|
|
||||||
third_party/lua/src/*.[ch] \
|
|
||||||
third_party/lua/src/lib/*.[ch] \
|
|
||||||
third_party/lua/src/lib/README"
|
|
||||||
|
|
||||||
zlib_files="third_party/zlib/*.[ch] \
|
zlib_files="third_party/zlib/*.[ch] \
|
||||||
third_party/zlib/*.txt \
|
third_party/zlib/*.txt \
|
||||||
third_party/zlib/README"
|
third_party/zlib/README"
|
||||||
@ -95,41 +84,59 @@ ase_files="config.h \
|
|||||||
docs/files/*.txt \
|
docs/files/*.txt \
|
||||||
docs/licenses/*.txt \
|
docs/licenses/*.txt \
|
||||||
obj/*.txt \
|
obj/*.txt \
|
||||||
obj/djgpp/*.txt \
|
|
||||||
obj/mingw32/*.txt \
|
obj/mingw32/*.txt \
|
||||||
|
obj/msvc/*.txt \
|
||||||
obj/unix/*.txt \
|
obj/unix/*.txt \
|
||||||
src/*.[ch] \
|
src/*.cpp \
|
||||||
src/*.rc \
|
src/*.rc \
|
||||||
src/commands/*.[ch] \
|
src/commands/*.cpp \
|
||||||
src/commands/fx/*.[ch] \
|
src/commands/*.h \
|
||||||
src/console/*.[ch] \
|
src/commands/fx/*.cpp \
|
||||||
src/core/*.[ch] \
|
src/commands/fx/*.h \
|
||||||
src/dialogs/*.[ch] \
|
src/console/*.cpp \
|
||||||
src/effect/*.[ch] \
|
src/console/*.h \
|
||||||
src/file/*.[ch] \
|
src/core/*.cpp \
|
||||||
src/file/fli/*.[ch] \
|
src/core/*.h \
|
||||||
|
src/dialogs/*.cpp \
|
||||||
|
src/dialogs/*.h \
|
||||||
|
src/effect/*.cpp \
|
||||||
|
src/effect/*.h \
|
||||||
|
src/file/*.cpp \
|
||||||
|
src/file/*.h \
|
||||||
|
src/file/fli/*.cpp \
|
||||||
|
src/file/fli/*.h \
|
||||||
src/file/fli/README \
|
src/file/fli/README \
|
||||||
src/file/gif/*.[ch] \
|
src/file/gif/*.cpp \
|
||||||
src/intl/*.[ch] \
|
src/file/gif/*.h \
|
||||||
src/jinete/*.[ch] \
|
src/intl/*.cpp \
|
||||||
src/jinete/themes/*.[ch] \
|
src/intl/*.h \
|
||||||
|
src/jinete/*.cpp \
|
||||||
|
src/jinete/*.h \
|
||||||
|
src/jinete/themes/*.cpp \
|
||||||
|
src/jinete/themes/*.h \
|
||||||
src/jinete/themes/Makefile.icons \
|
src/jinete/themes/Makefile.icons \
|
||||||
src/jinete/themes/stand/*.pcx \
|
src/jinete/themes/stand/*.pcx \
|
||||||
src/modules/*.[ch] \
|
src/modules/*.cpp \
|
||||||
src/raster/*.[ch] \
|
src/modules/*.h \
|
||||||
|
src/raster/*.cpp \
|
||||||
|
src/raster/*.h \
|
||||||
src/raster/x86/*.s \
|
src/raster/x86/*.s \
|
||||||
src/script/*.[ch] \
|
src/tests/*.cpp \
|
||||||
src/script/*.py \
|
src/tests/*.h \
|
||||||
src/test/*.[ch] \
|
src/tests/jinete/*.cpp \
|
||||||
src/test/jinete/*.[ch] \
|
src/tests/jinete/*.h \
|
||||||
src/test/jinete/*.jid \
|
src/tests/jinete/*.jid \
|
||||||
src/test/jinete/*.pcx \
|
src/tests/jinete/*.pcx \
|
||||||
src/test/jinete/*.ttf \
|
src/tests/jinete/*.ttf \
|
||||||
src/test/jinete/*.txt \
|
src/tests/jinete/*.txt \
|
||||||
src/test/raster/*.[ch] \
|
src/tests/raster/*.cpp \
|
||||||
src/util/*.[ch] \
|
src/tests/raster/*.h \
|
||||||
src/widgets/*.[ch] \
|
src/util/*.cpp \
|
||||||
src/widgets/editor/*.[ch] \
|
src/util/*.h \
|
||||||
|
src/widgets/*.cpp \
|
||||||
|
src/widgets/*.h \
|
||||||
|
src/widgets/editor/*.cpp \
|
||||||
|
src/widgets/editor/*.h \
|
||||||
src/widgets/editor/*.txt \
|
src/widgets/editor/*.txt \
|
||||||
third_party/*.txt"
|
third_party/*.txt"
|
||||||
|
|
||||||
@ -146,7 +153,6 @@ cp --parents \
|
|||||||
$jpeg_files \
|
$jpeg_files \
|
||||||
$libart_files \
|
$libart_files \
|
||||||
$libpng_files \
|
$libpng_files \
|
||||||
$lua_files \
|
|
||||||
$zlib_files \
|
$zlib_files \
|
||||||
$ase_files \
|
$ase_files \
|
||||||
"$dir/$distdir"
|
"$dir/$distdir"
|
||||||
|
@ -207,7 +207,7 @@ static bool hooked_window1_msg_proc(JWidget widget, JMessage msg)
|
|||||||
if (msg->type == JM_CLOSE) {
|
if (msg->type == JM_CLOSE) {
|
||||||
JLink link, next;
|
JLink link, next;
|
||||||
JI_LIST_FOR_EACH_SAFE(windows, link, next) /* close all windows */
|
JI_LIST_FOR_EACH_SAFE(windows, link, next) /* close all windows */
|
||||||
jwindow_close(link->data, NULL);
|
jwindow_close(reinterpret_cast<JWidget>(link->data), NULL);
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
@ -129,7 +129,7 @@ void set_my_palette(void)
|
|||||||
pal[c].r = pal[c].b = pal[c].g = 0;
|
pal[c].r = pal[c].b = pal[c].g = 0;
|
||||||
|
|
||||||
set_palette(pal);
|
set_palette(pal);
|
||||||
rgb_map = malloc(sizeof(RGB_MAP));
|
rgb_map = (RGB_MAP*)malloc(sizeof(RGB_MAP));
|
||||||
create_rgb_table(rgb_map, pal, NULL);
|
create_rgb_table(rgb_map, pal, NULL);
|
||||||
}
|
}
|
||||||
|
|
@ -158,7 +158,7 @@ void set_my_palette(void)
|
|||||||
bmp = load_bitmap(buf, pal);
|
bmp = load_bitmap(buf, pal);
|
||||||
if (bmp) {
|
if (bmp) {
|
||||||
set_palette(pal);
|
set_palette(pal);
|
||||||
rgb_map = malloc(sizeof(RGB_MAP));
|
rgb_map = (RGB_MAP*)malloc(sizeof(RGB_MAP));
|
||||||
create_rgb_table(rgb_map, pal, NULL);
|
create_rgb_table(rgb_map, pal, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -115,7 +115,7 @@ static int tip_type(void)
|
|||||||
|
|
||||||
static bool tip_hook(JWidget widget, JMessage msg)
|
static bool tip_hook(JWidget widget, JMessage msg)
|
||||||
{
|
{
|
||||||
TipData *tip = jwidget_get_data(widget, tip_type());
|
TipData* tip = reinterpret_cast<TipData*>(jwidget_get_data(widget, tip_type()));
|
||||||
|
|
||||||
switch (msg->type) {
|
switch (msg->type) {
|
||||||
|
|
||||||
@ -169,7 +169,7 @@ static JWidget tip_window_new(const char *text)
|
|||||||
|
|
||||||
/* remove decorative widgets */
|
/* remove decorative widgets */
|
||||||
JI_LIST_FOR_EACH_SAFE(window->children, link, next) {
|
JI_LIST_FOR_EACH_SAFE(window->children, link, next) {
|
||||||
jwidget_free(link->data);
|
jwidget_free(reinterpret_cast<JWidget>(link->data));
|
||||||
}
|
}
|
||||||
|
|
||||||
jwidget_add_hook(window, JI_WIDGET, tip_window_hook, NULL);
|
jwidget_add_hook(window, JI_WIDGET, tip_window_hook, NULL);
|
@ -63,8 +63,8 @@ int main(int argc, char *argv[])
|
|||||||
install_keyboard();
|
install_keyboard();
|
||||||
install_mouse();
|
install_mouse();
|
||||||
|
|
||||||
rgb_map = jmalloc(sizeof(RGB_MAP));
|
rgb_map = (RGB_MAP*)jmalloc(sizeof(RGB_MAP));
|
||||||
color_map = jmalloc(sizeof(COLOR_MAP));
|
color_map = (COLOR_MAP*)jmalloc(sizeof(COLOR_MAP));
|
||||||
|
|
||||||
create_rgb_table(rgb_map, default_palette, NULL);
|
create_rgb_table(rgb_map, default_palette, NULL);
|
||||||
create_trans_table(color_map, default_palette, 128, 128, 128, NULL);
|
create_trans_table(color_map, default_palette, 128, 128, 128, NULL);
|
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
#include "jinete/jinete.h"
|
#include "jinete/jinete.h"
|
||||||
|
|
||||||
static char *xml_src =
|
static const char *xml_src =
|
||||||
"<root>" "\n"
|
"<root>" "\n"
|
||||||
" <item>" "\n"
|
" <item>" "\n"
|
||||||
" <value1>text" "\n"
|
" <value1>text" "\n"
|
||||||
@ -123,7 +123,7 @@ static void prt_xmlnode(JXmlNode node, int indent)
|
|||||||
prt("JXmlNode->value = %s\n", node->value);
|
prt("JXmlNode->value = %s\n", node->value);
|
||||||
|
|
||||||
JI_LIST_FOR_EACH(node->children, link)
|
JI_LIST_FOR_EACH(node->children, link)
|
||||||
prt_xmlnode(link->data, indent+1);
|
prt_xmlnode(reinterpret_cast<JXmlNode>(link->data), indent+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void prt(const char *format, ...)
|
static void prt(const char *format, ...)
|
||||||
@ -141,7 +141,7 @@ static void prt(const char *format, ...)
|
|||||||
if (!text)
|
if (!text)
|
||||||
final = jstrdup(buf);
|
final = jstrdup(buf);
|
||||||
else {
|
else {
|
||||||
final = jmalloc(ustrlen(text) + ustrlen(buf) + 1);
|
final = (char*)jmalloc(ustrlen(text) + ustrlen(buf) + 1);
|
||||||
|
|
||||||
ustrcpy(final, empty_string);
|
ustrcpy(final, empty_string);
|
||||||
ustrcat(final, text);
|
ustrcat(final, text);
|
@ -24,15 +24,16 @@
|
|||||||
|
|
||||||
static void draw_dirty(int x1, int y, int y2, void *data)
|
static void draw_dirty(int x1, int y, int y2, void *data)
|
||||||
{
|
{
|
||||||
image_hline(data, x1, y, y2, rand() % 256);
|
image_hline(reinterpret_cast<Image*>(data), x1, y, y2, rand() % 256);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main (int argc, char *argv[])
|
int main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
Brush *brush1, *brush2;
|
Brush* brush1;
|
||||||
Dirty *dirty;
|
Brush* brush2;
|
||||||
Image *image;
|
Dirty* dirty;
|
||||||
BITMAP *bmp;
|
Image* image;
|
||||||
|
BITMAP* bmp;
|
||||||
int redraw;
|
int redraw;
|
||||||
int mx, my, mb, ox, oy, ob;
|
int mx, my, mb, ox, oy, ob;
|
||||||
int c;
|
int c;
|
@ -169,7 +169,7 @@ void draw_filled_bezier_path(BITMAP *bmp, BEZIER_PATH *path, int color)
|
|||||||
|
|
||||||
vertices = jlist_length(shape);
|
vertices = jlist_length(shape);
|
||||||
if (vertices > 0) {
|
if (vertices > 0) {
|
||||||
points = jmalloc(sizeof(int) * vertices * 2);
|
points = (int*)jmalloc(sizeof(int) * vertices * 2);
|
||||||
|
|
||||||
c = 0;
|
c = 0;
|
||||||
JI_LIST_FOR_EACH(shape, link) {
|
JI_LIST_FOR_EACH(shape, link) {
|
||||||
@ -263,7 +263,7 @@ int get_bezier_point (BEZIER_PATH *path, float x, float y, BEZIER_NODE **the_nod
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
BITMAP *virtual, *background;
|
BITMAP *virt, *background;
|
||||||
BEZIER_PATH *path;
|
BEZIER_PATH *path;
|
||||||
int x[4], y[4];
|
int x[4], y[4];
|
||||||
int level;
|
int level;
|
||||||
@ -282,7 +282,7 @@ int main(void)
|
|||||||
|
|
||||||
path = create_bezier_path();
|
path = create_bezier_path();
|
||||||
|
|
||||||
virtual = create_bitmap(SCREEN_W, SCREEN_H);
|
virt = create_bitmap(SCREEN_W, SCREEN_H);
|
||||||
background = create_bitmap(SCREEN_W, SCREEN_H);
|
background = create_bitmap(SCREEN_W, SCREEN_H);
|
||||||
clear(background);
|
clear(background);
|
||||||
|
|
||||||
@ -401,14 +401,14 @@ int main(void)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
blit(background, virtual, 0, 0, 0, 0, SCREEN_W, SCREEN_H);
|
blit(background, virt, 0, 0, 0, 0, SCREEN_W, SCREEN_H);
|
||||||
|
|
||||||
draw_bezier_path(virtual, path, DRAW_BEZIER_CONTROL_LINES, makecol(32, 32, 32));
|
draw_bezier_path(virt, path, DRAW_BEZIER_CONTROL_LINES, makecol(32, 32, 32));
|
||||||
draw_bezier_path(virtual, path, DRAW_BEZIER_LINE, makecol(255, 0, 0));
|
draw_bezier_path(virt, path, DRAW_BEZIER_LINE, makecol(255, 0, 0));
|
||||||
draw_bezier_path(virtual, path, DRAW_BEZIER_CONTROL_POINTS, makecol(0, 128, 255));
|
draw_bezier_path(virt, path, DRAW_BEZIER_CONTROL_POINTS, makecol(0, 128, 255));
|
||||||
draw_bezier_path(virtual, path, DRAW_BEZIER_NODES, makecol(255, 255, 255));
|
draw_bezier_path(virt, path, DRAW_BEZIER_NODES, makecol(255, 255, 255));
|
||||||
|
|
||||||
blit(virtual, screen, 0, 0, 0, 0, SCREEN_W, SCREEN_H);
|
blit(virt, screen, 0, 0, 0, 0, SCREEN_W, SCREEN_H);
|
||||||
}
|
}
|
||||||
old_x = mouse_x;
|
old_x = mouse_x;
|
||||||
old_y = mouse_y;
|
old_y = mouse_y;
|
||||||
@ -423,16 +423,16 @@ int main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* draw */
|
/* draw */
|
||||||
blit(background, virtual, 0, 0, 0, 0, SCREEN_W, SCREEN_H);
|
blit(background, virt, 0, 0, 0, 0, SCREEN_W, SCREEN_H);
|
||||||
|
|
||||||
if (!key[KEY_LSHIFT])
|
if (!key[KEY_LSHIFT])
|
||||||
draw_bezier_path(virtual, path, DRAW_BEZIER_CONTROL_LINES, makecol(32, 32, 32));
|
draw_bezier_path(virt, path, DRAW_BEZIER_CONTROL_LINES, makecol(32, 32, 32));
|
||||||
|
|
||||||
draw_bezier_path(virtual, path, DRAW_BEZIER_LINE, makecol(255, 0, 0));
|
draw_bezier_path(virt, path, DRAW_BEZIER_LINE, makecol(255, 0, 0));
|
||||||
|
|
||||||
if (!key[KEY_LSHIFT]) {
|
if (!key[KEY_LSHIFT]) {
|
||||||
draw_bezier_path(virtual, path, DRAW_BEZIER_CONTROL_POINTS, makecol(0, 128, 255));
|
draw_bezier_path(virt, path, DRAW_BEZIER_CONTROL_POINTS, makecol(0, 128, 255));
|
||||||
draw_bezier_path(virtual, path, DRAW_BEZIER_NODES, makecol(255, 255, 255));
|
draw_bezier_path(virt, path, DRAW_BEZIER_NODES, makecol(255, 255, 255));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* filled */
|
/* filled */
|
||||||
@ -450,12 +450,12 @@ int main(void)
|
|||||||
while (key[KEY_A]);
|
while (key[KEY_A]);
|
||||||
}
|
}
|
||||||
|
|
||||||
hline(virtual, mouse_x-4, mouse_y, mouse_x+4, makecol(255, 255, 255));
|
hline(virt, mouse_x-4, mouse_y, mouse_x+4, makecol(255, 255, 255));
|
||||||
vline(virtual, mouse_x, mouse_y-4, mouse_y+4, makecol(255, 255, 255));
|
vline(virt, mouse_x, mouse_y-4, mouse_y+4, makecol(255, 255, 255));
|
||||||
blit(virtual, screen, 0, 0, 0, 0, SCREEN_W, SCREEN_H);
|
blit(virt, screen, 0, 0, 0, 0, SCREEN_W, SCREEN_H);
|
||||||
} while (!key[KEY_ESC]);
|
} while (!key[KEY_ESC]);
|
||||||
|
|
||||||
destroy_bitmap(virtual);
|
destroy_bitmap(virt);
|
||||||
destroy_bitmap(background);
|
destroy_bitmap(background);
|
||||||
|
|
||||||
allegro_exit();
|
allegro_exit();
|
@ -16,7 +16,7 @@
|
|||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "test/test.h"
|
#include "tests/test.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include "jinete/jthread.h"
|
#include "jinete/jthread.h"
|
@ -16,7 +16,7 @@
|
|||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "test/test.h"
|
#include "tests/test.h"
|
||||||
|
|
||||||
#include "jinete/jinete.h"
|
#include "jinete/jinete.h"
|
||||||
#include "core/file_system.h"
|
#include "core/file_system.h"
|
||||||
@ -46,7 +46,7 @@ static void display_fileitem(FileItem *fi, int level, int deep)
|
|||||||
list = fileitem_get_children(fi);
|
list = fileitem_get_children(fi);
|
||||||
if (list) {
|
if (list) {
|
||||||
JI_LIST_FOR_EACH(list, link) {
|
JI_LIST_FOR_EACH(list, link) {
|
||||||
display_fileitem(link->data, level+1, deep-1);
|
display_fileitem(reinterpret_cast<FileItem*>(link->data), level+1, deep-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -16,7 +16,7 @@
|
|||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "test/test.h"
|
#include "tests/test.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define TEST_GUI
|
#define TEST_GUI
|
||||||
#include "test/test.h"
|
#include "tests/test.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests two widgets in a row, each one of 10x10 pixels.
|
* Tests two widgets in a row, each one of 10x10 pixels.
|
@ -16,7 +16,7 @@
|
|||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "test/test.h"
|
#include "tests/test.h"
|
||||||
#include "jinete/jlist.h"
|
#include "jinete/jlist.h"
|
||||||
|
|
||||||
static void test_append_and_clear(void)
|
static void test_append_and_clear(void)
|
Loading…
x
Reference in New Issue
Block a user