Skip to content

Commit

Permalink
RT R3 A105 Hostkit for Win32
Browse files Browse the repository at this point in the history
  • Loading branch information
REBOL Technologies authored and earl committed Sep 1, 2010
1 parent 2805f80 commit 4d3bdea
Show file tree
Hide file tree
Showing 58 changed files with 7,823 additions and 1,342 deletions.
37 changes: 37 additions & 0 deletions about.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
REBOL 3 Host-Kit Source Distribution
From REBOL Technologies in Ukiah, California

Version: 2.100.105.0.0 (alpha)
Updated: 1-Sep-2010/9:55:48-7:00

PURPOSE:

The purpose of the R3 Host-Kit is to provide developers with a method of
building custom versions of REBOL, including built-in extension modules.

SEE:

http://www.rebol.com/r3/docs/concepts/host-kit.html
http://www.rebol.com/r3/docs/concepts/extensions.html

FEEDBACK:

R3 Chat is the forum for comments, feedback, code changes, and questions.
Type "chat" at the R3 command line. Most users only need to know about
five commands. Type "help" for doc pages, and "?" for a summary.

HOW TO BUILD:

We have included project makefiles for various tool-chains as make-name
directories. Some of these can be run directly from their directories.
Others may require you to move their files to the top directory.

For some types of builds, you need rebol.exe in your build directory.

That's it for now. Be productive, lean, and quick,

-Carl

Carl Sassenrath
REBOL Chief

28 changes: 0 additions & 28 deletions info.txt

This file was deleted.

Binary file modified lib/r3lib.dll
Binary file not shown.
Binary file modified lib/r3lib.exp
Binary file not shown.
Binary file modified lib/r3lib.lib
Binary file not shown.
163 changes: 163 additions & 0 deletions make-cbp/r3.cbp
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="r3-host-kit" />
<Option makefile="makefile" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option platforms="Windows;" />
<Option output="bin\Debug\r3" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option platforms="Windows;" />
<Option output="bin\Release\r3" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O1" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-c" />
<Add option="-DUNICODE" />
<Add directory="src\include" />
</Compiler>
<Linker>
<Add option="-lm" />
<Add library="wsock32" />
<Add library="comdlg32" />
<Add library="gdi32" />
<Add library="stdc++" />
<Add library="r3lib" />
<Add directory="lib" />
</Linker>
<Unit filename="src\agg\agg_arc.cpp" />
<Unit filename="src\agg\agg_arrowhead.cpp" />
<Unit filename="src\agg\agg_bezier_arc.cpp" />
<Unit filename="src\agg\agg_bspline.cpp" />
<Unit filename="src\agg\agg_compo.cpp" />
<Unit filename="src\agg\agg_curves.cpp" />
<Unit filename="src\agg\agg_font_win32_tt.cpp" />
<Unit filename="src\agg\agg_graphics.cpp" />
<Unit filename="src\agg\agg_image_filters.cpp" />
<Unit filename="src\agg\agg_line_aa_basics.cpp" />
<Unit filename="src\agg\agg_path_storage.cpp" />
<Unit filename="src\agg\agg_rasterizer_scanline_aa.cpp" />
<Unit filename="src\agg\agg_rounded_rect.cpp" />
<Unit filename="src\agg\agg_scanline_u.h" />
<Unit filename="src\agg\agg_sqrt_tables.cpp" />
<Unit filename="src\agg\agg_trans_affine.cpp" />
<Unit filename="src\agg\agg_trans_single_path.cpp" />
<Unit filename="src\agg\agg_truetype_text.cpp" />
<Unit filename="src\agg\agg_vcgen_bspline.cpp" />
<Unit filename="src\agg\agg_vcgen_contour.cpp" />
<Unit filename="src\agg\agg_vcgen_dash.cpp" />
<Unit filename="src\agg\agg_vcgen_markers_term.cpp" />
<Unit filename="src\agg\agg_vcgen_smooth_poly1.cpp" />
<Unit filename="src\agg\agg_vcgen_stroke.cpp" />
<Unit filename="src\agg\agg_vpgen_segmentator.cpp" />
<Unit filename="src\agg\compositor.cpp" />
<Unit filename="src\agg\graphics.cpp" />
<Unit filename="src\agg\rich_text.cpp" />
<Unit filename="src\include\agg-compositor.h" />
<Unit filename="src\include\agg-draw.h" />
<Unit filename="src\include\agg-text.h" />
<Unit filename="src\include\ext-types.h" />
<Unit filename="src\include\host-ext-draw.h" />
<Unit filename="src\include\host-ext-graphics.h" />
<Unit filename="src\include\host-ext-shape.h" />
<Unit filename="src\include\host-ext-text.h" />
<Unit filename="src\include\host-lib.h" />
<Unit filename="src\include\reb-args.h" />
<Unit filename="src\include\reb-c.h" />
<Unit filename="src\include\reb-config.h" />
<Unit filename="src\include\reb-defs.h" />
<Unit filename="src\include\reb-device.h" />
<Unit filename="src\include\reb-event.h" />
<Unit filename="src\include\reb-evtypes.h" />
<Unit filename="src\include\reb-ext.h" />
<Unit filename="src\include\reb-file.h" />
<Unit filename="src\include\reb-filereq.h" />
<Unit filename="src\include\reb-gob.h" />
<Unit filename="src\include\reb-host.h" />
<Unit filename="src\include\reb-lib.h" />
<Unit filename="src\include\reb-net.h" />
<Unit filename="src\include\reb-to.h" />
<Unit filename="src\include\rebol-lib.h" />
<Unit filename="src\include\sys-net.h" />
<Unit filename="src\os\dev-dns.c">
<Option compilerVar="CC" />
<Option compiler="gcc" use="1" buildCommand="$compiler $options $includes -c $file -fpack-struct -o $object" />
</Unit>
<Unit filename="src\os\dev-net.c">
<Option compilerVar="CC" />
<Option compiler="gcc" use="1" buildCommand="$compiler $options $includes -c $file -fpack-struct -o $object" />
</Unit>
<Unit filename="src\os\host-args.c">
<Option compilerVar="CC" />
<Option compiler="gcc" use="1" buildCommand="$compiler $options $includes -c $file -fpack-struct -o $object" />
</Unit>
<Unit filename="src\os\host-device.c">
<Option compilerVar="CC" />
<Option compiler="gcc" use="1" buildCommand="$compiler $options $includes -c $file -fpack-struct -o $object" />
</Unit>
<Unit filename="src\os\host-main.c">
<Option compilerVar="CC" />
<Option compiler="gcc" use="1" buildCommand="$compiler $options $includes -c $file -fpack-struct -o $object" />
</Unit>
<Unit filename="src\os\host-stdio.c">
<Option compilerVar="CC" />
<Option compiler="gcc" use="1" buildCommand="$compiler $options $includes -c $file -fpack-struct -o $object" />
</Unit>
<Unit filename="src\os\win32\dev-clipboard.c">
<Option compilerVar="CC" />
<Option compiler="gcc" use="1" buildCommand="$compiler $options $includes -c $file -fpack-struct -o $object" />
</Unit>
<Unit filename="src\os\win32\dev-event.c">
<Option compilerVar="CC" />
<Option compiler="gcc" use="1" buildCommand="$compiler $options $includes -c $file -fpack-struct -o $object" />
</Unit>
<Unit filename="src\os\win32\dev-file.c">
<Option compilerVar="CC" />
<Option compiler="gcc" use="1" buildCommand="$compiler $options $includes -c $file -fpack-struct -o $object" />
</Unit>
<Unit filename="src\os\win32\dev-stdio.c">
<Option compilerVar="CC" />
<Option compiler="gcc" use="1" buildCommand="$compiler $options $includes -c $file -fpack-struct -o $object" />
</Unit>
<Unit filename="src\os\win32\host-event.c">
<Option compilerVar="CC" />
<Option compiler="gcc" use="1" buildCommand="$compiler $options $includes -c $file -fpack-struct -o $object" />
</Unit>
<Unit filename="src\os\win32\host-graphics.c">
<Option compilerVar="CC" />
<Option compiler="gcc" use="1" buildCommand="$compiler $options $includes -c $file -fpack-struct -o $object" />
</Unit>
<Unit filename="src\os\win32\host-lib.c">
<Option compilerVar="CC" />
<Option compiler="gcc" use="1" buildCommand="$compiler $options $includes -c $file -fpack-struct -o $object" />
</Unit>
<Unit filename="src\os\win32\host-window.c">
<Option compilerVar="CC" />
<Option compiler="gcc" use="1" buildCommand="$compiler $options $includes -c $file -fpack-struct -o $object" />
</Unit>
<Extensions>
<code_completion />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
6 changes: 6 additions & 0 deletions make-cbp/r3.workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_workspace_file>
<Workspace title="Workspace">
<Project filename="r3.cbp" active="1" />
</Workspace>
</CodeBlocks_workspace_file>
54 changes: 25 additions & 29 deletions makefile → make-gcc/makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#--- REBOL 3.0 Host Makefile - Build A104
#--- Note: this makefile was generated by make-build.r (27-Aug-2010/3:41:49)
#--- REBOL 3.0 Host Makefile - Build A105
#--- Note: this makefile was generated by make-build.r (1-Sep-2010/16:55:48)
#--- This file intentionally kept simple - to work on all platforms.
#--- You will need REBOL 2.6 or 2.7 in your work directory or environment path

C= gcc
CFLAGS= -c -O1 -DUNICODE -I src/include/
#C= cc (an alternative)

CFLAGS= -c -O1 -DUNICODE -DREB_LIB -I src/include/
#The REB_LIB flag indicates use direct linkage to reb-lib

LIBS= lib/r3lib.lib -L c:/mingw/lib/ -lm -lwsock32 -lcomdlg32 -lgdi32 -lstdc++

#-lc -lm -lstdc++
Expand Down Expand Up @@ -33,7 +37,6 @@ OBJS= \
$O/host-args.o\
$O/host-device.o\
$O/host-stdio.o\
$O/host-ext-test.o\
$O/dev-net.o\
$O/dev-dns.o\
$O/host-lib.o\
Expand Down Expand Up @@ -70,14 +73,11 @@ AGG= \
$O/agg_vpgen_segmentator.o\
$O/agg_compo.o\
$O/agg_graphics.o\
$O/agg_font_win32_tt.o\
$O/agg_truetype_text.o\
$O/compositor.o\
$O/graphics.o

REBS= \
reb\
$S/os/host-init.c\
$S/os/host-ext-graphics.c\
$S/os/host-ext-draw.c
$O/graphics.o\
$O/rich_text.o

all:
-mkdir obj
Expand All @@ -89,16 +89,13 @@ core:

clean:
-del /q obj\*
-del $S\os\host-init.c
-del $S\os\host-ext-graphics.c
-del $S\os\host-ext-draw.c

r3.exe: $(REBS) $(OBJS) $(GFX) $(AGG) r3lib.dll
r3.exe: $(OBJS) $(GFX) $(AGG) r3lib.dll
$C $(CFLAGS) -fpack-struct -o $O/host-main.o $S/os/host-main.c
$C -o r3.exe $(OBJS) $(GFX) $(AGG) $(LIBS)
strip r3.exe

r3core.exe: $(REBS) $(OBJS) r3lib.dll
r3core.exe: $(OBJS) r3lib.dll
$C $(CFLAGS) -DCORE_ONLY -fpack-struct -o $O/host-main.o $S/os/host-main.c
$C -o r3core.exe $(OBJS) $(LIBS)
strip r3core.exe
Expand All @@ -109,23 +106,16 @@ r3lib.dll: lib/r3lib.dll

#--- Convert REBOL files to C files:

reb:
exts:
@echo "REBOL 2.6 or 2.7 needs to be in the make directory"
rebol -sqw --do "write to-file 'reb now quit"

$S/os/host-init.c: $T/make-host-init.r $S/mezz/prot-http.r $S/mezz/view-colors.r
rebol -sqw $T/make-host-init.r

$S/os/host-ext-graphics.c: $T/make-host-ext.r $S/boot/graphics.r
rebol -sqw $T/make-host-ext.r

$S/os/host-ext-draw.c: $T/make-host-ext.r $S/boot/draw.r
rebol -sqw $T/make-host-ext.r


#--- Host Program:

$O/host-main.o: $S/os/host-main.c $(INCS) $I/reb-host.h $I/host-lib.h $I/rebol-lib.h
$O/host-main.o: $S/os/host-main.c $(INCS) $I/reb-host.h $I/host-lib.h $I/host-init.h
$C $(CFLAGS) -fpack-struct -o $O/host-main.o $S/os/host-main.c

$O/host-args.o: $S/os/host-args.c $(INCS) $I/reb-config.h $I/reb-c.h $I/reb-args.h
Expand All @@ -137,9 +127,6 @@ $O/host-device.o: $S/os/host-device.c $(INCS) $I/reb-host.h $I/host-lib.h
$O/host-stdio.o: $S/os/host-stdio.c $(INCS) $I/reb-host.h $I/host-lib.h
$C $(CFLAGS) -fpack-struct -o $O/host-stdio.o $S/os/host-stdio.c

$O/host-ext-test.o: $S/os/host-ext-test.c $(INCS) $I/reb-host.h $I/host-lib.h
$C $(CFLAGS) -fpack-struct -o $O/host-ext-test.o $S/os/host-ext-test.c

$O/dev-net.o: $S/os/dev-net.c $(INCS) $I/reb-host.h $I/host-lib.h $I/sys-net.h
$C $(CFLAGS) -fpack-struct -o $O/dev-net.o $S/os/dev-net.c

Expand All @@ -164,7 +151,7 @@ $O/dev-event.o: $S/os/win32/dev-event.c $(INCS) $I/reb-host.h $I/host-lib.h
$O/dev-clipboard.o: $S/os/win32/dev-clipboard.c $(INCS) $I/reb-host.h $I/host-lib.h $I/sys-net.h
$C $(CFLAGS) -fpack-struct -o $O/dev-clipboard.o $S/os/win32/dev-clipboard.c

$O/host-graphics.o: $S/os/win32/host-graphics.c $(INCS) $I/reb-host.h $I/host-lib.h $I/agg-draw.h
$O/host-graphics.o: $S/os/win32/host-graphics.c $(INCS) $I/reb-host.h $I/host-lib.h $I/agg-draw.h $I/agg-text.h $I/host-ext-graphics.h $I/host-ext-draw.h $I/host-ext-shape.h $I/host-ext-text.h
$C $(CFLAGS) -fpack-struct -o $O/host-graphics.o $S/os/win32/host-graphics.c

$O/host-event.o: $S/os/win32/host-event.c $(INCS) $I/reb-host.h $I/host-lib.h
Expand Down Expand Up @@ -242,9 +229,18 @@ $O/agg_compo.o: $S/agg/agg_compo.cpp $(INCS)
$O/agg_graphics.o: $S/agg/agg_graphics.cpp $(INCS)
$C $(CFLAGS) -o $O/agg_graphics.o $S/agg/agg_graphics.cpp

$O/agg_font_win32_tt.o:$S/agg/agg_font_win32_tt.cpp $(INCS)
$C $(CFLAGS) -o $O/agg_font_win32_tt.o $S/agg/agg_font_win32_tt.cpp

$O/agg_truetype_text.o:$S/agg/agg_truetype_text.cpp $(INCS)
$C $(CFLAGS) -o $O/agg_truetype_text.o $S/agg/agg_truetype_text.cpp

$O/compositor.o: $S/agg/compositor.cpp $(INCS)
$C $(CFLAGS) -o $O/compositor.o $S/agg/compositor.cpp

$O/graphics.o: $S/agg/graphics.cpp $(INCS)
$C $(CFLAGS) -o $O/graphics.o $S/agg/graphics.cpp

$O/rich_text.o: $S/agg/rich_text.cpp $(INCS)
$C $(CFLAGS) -o $O/rich_text.o $S/agg/rich_text.cpp

Loading

0 comments on commit 4d3bdea

Please sign in to comment.