Mxx_ru 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +26 -26
- data/NEWS +107 -107
- data/README +21 -21
- data/Rakefile +56 -59
- data/examples/exe_and_lib/prj.rb +11 -11
- data/examples/exe_and_lib/say.rb +7 -7
- data/examples/exe_dll_lib/inout.rb +18 -18
- data/examples/exe_dll_lib/prj.rb +11 -11
- data/examples/exe_dll_lib/say.rb +9 -9
- data/examples/exe_dll_lib_2/build.rb +10 -10
- data/examples/exe_dll_lib_2/inout/prj.rb +16 -16
- data/examples/exe_dll_lib_2/main/prj.rb +9 -9
- data/examples/exe_dll_lib_2/say/prj.rb +8 -8
- data/examples/simple_exe/prj.rb +7 -7
- data/lib/mxx_ru/abstract_target.rb +335 -335
- data/lib/mxx_ru/binary_library.rb +106 -106
- data/lib/mxx_ru/binary_target.rb +173 -173
- data/lib/mxx_ru/binary_unittest.rb +143 -143
- data/lib/mxx_ru/compat.rb +33 -33
- data/lib/mxx_ru/cpp.rb +38 -38
- data/lib/mxx_ru/cpp/analyzer.rb +237 -237
- data/lib/mxx_ru/cpp/composite.rb +118 -118
- data/lib/mxx_ru/cpp/detect_toolset.rb +122 -122
- data/lib/mxx_ru/cpp/mode.rb +90 -90
- data/lib/mxx_ru/cpp/obj_placement.rb +330 -330
- data/lib/mxx_ru/cpp/obj_placements/custom_subdir.rb +155 -155
- data/lib/mxx_ru/cpp/qt.rb +366 -366
- data/lib/mxx_ru/cpp/rucodegen.rb +157 -157
- data/lib/mxx_ru/cpp/source_file.rb +79 -79
- data/lib/mxx_ru/cpp/target.rb +1523 -1523
- data/lib/mxx_ru/cpp/toolset.rb +1087 -1087
- data/lib/mxx_ru/cpp/toolsets/bcc_win32_5.rb +53 -53
- data/lib/mxx_ru/cpp/toolsets/bcc_win32_family.rb +460 -460
- data/lib/mxx_ru/cpp/toolsets/c89_etk_nsk.rb +59 -59
- data/lib/mxx_ru/cpp/toolsets/c89_nsk.rb +59 -59
- data/lib/mxx_ru/cpp/toolsets/c89_nsk_family.rb +277 -277
- data/lib/mxx_ru/cpp/toolsets/gcc_cygwin.rb +58 -58
- data/lib/mxx_ru/cpp/toolsets/gcc_family.rb +420 -424
- data/lib/mxx_ru/cpp/toolsets/gcc_linux.rb +64 -64
- data/lib/mxx_ru/cpp/toolsets/gcc_mingw.rb +150 -150
- data/lib/mxx_ru/cpp/toolsets/gcc_sparc_solaris.rb +91 -91
- data/lib/mxx_ru/cpp/toolsets/gcc_unix_family.rb +103 -84
- data/lib/mxx_ru/cpp/toolsets/vc7.rb +62 -62
- data/lib/mxx_ru/cpp/toolsets/vc8.rb +455 -455
- data/lib/mxx_ru/cpp/toolsets/vc_family.rb +448 -448
- data/lib/mxx_ru/ex.rb +165 -165
- data/lib/mxx_ru/makestyle_generator.rb +146 -146
- data/lib/mxx_ru/textfile_unittest.rb +303 -303
- data/lib/mxx_ru/util.rb +340 -340
- data/tests/c/pcre/chartables.c +183 -183
- data/tests/c/pcre/config.h +99 -99
- data/tests/c/pcre/dftables.c +167 -167
- data/tests/c/pcre/get.c +349 -349
- data/tests/c/pcre/internal.h +677 -677
- data/tests/c/pcre/maketables.c +140 -140
- data/tests/c/pcre/pcre.c +8304 -8304
- data/tests/c/pcre/pcre.h +193 -193
- data/tests/c/pcre/pcre.rb +14 -14
- data/tests/c/pcre/pcredemo.c +316 -316
- data/tests/c/pcre/pcregrep.c +642 -642
- data/tests/c/pcre/pcreposix.c +305 -305
- data/tests/c/pcre/pcreposix.h +88 -88
- data/tests/c/pcre/pcretest.c +1483 -1483
- data/tests/c/pcre/perltest +211 -211
- data/tests/c/pcre/printint.c +360 -360
- data/tests/c/pcre/study.c +472 -472
- data/tests/cpp/cpp_sources_glob/build.rb +7 -7
- data/tests/cpp/cpp_sources_glob/some/module/prj.rb +10 -10
- data/tests/cpp/cpp_sources_glob/tc_cpp_sources_glob.rb +18 -18
- data/tests/cpp/mswin_res_dll/build.rb +14 -14
- data/tests/cpp/mswin_res_dll/dll.cpp +17 -17
- data/tests/cpp/mswin_res_dll/dll.rb +29 -29
- data/tests/cpp/mswin_res_dll/dll.rc +48 -48
- data/tests/cpp/mswin_res_dll/h/dll.hpp +8 -8
- data/tests/cpp/mswin_res_dll/h/res.h +3 -3
- data/tests/cpp/mswin_res_dll/main.cpp +13 -13
- data/tests/cpp/mswin_res_dll/main.rb +19 -19
- data/tests/cpp/mswin_res_dll/tc_mswin_res_dll.rb +18 -18
- data/tests/cpp/mswin_res_exe/build.rb +23 -23
- data/tests/cpp/mswin_res_exe/h/res.h +3 -3
- data/tests/cpp/mswin_res_exe/main.cpp +17 -17
- data/tests/cpp/mswin_res_exe/main.rc +48 -48
- data/tests/cpp/mswin_res_exe/tc_mswin_res_exe.rb +18 -18
- data/tests/cpp/rucodegen.embedded/host_config.cpp +32 -32
- data/tests/cpp/rucodegen.embedded/impl/conn_params.cpp +7 -7
- data/tests/cpp/rucodegen.embedded/impl/conn_params.rb +14 -14
- data/tests/cpp/rucodegen.embedded/impl/h/conn_params.hpp +10 -10
- data/tests/cpp/rucodegen.embedded/prj.rb +16 -16
- data/tests/cpp/rucodegen.embedded/tc_rucodegen.rb +18 -18
- data/tests/cpp/rucodegen/host_config.cpp +20 -20
- data/tests/cpp/rucodegen/host_config.rb +14 -14
- data/tests/cpp/rucodegen/impl/conn_params.cpp +7 -7
- data/tests/cpp/rucodegen/impl/conn_params.rb +14 -14
- data/tests/cpp/rucodegen/impl/h/conn_params.hpp +10 -10
- data/tests/cpp/rucodegen/prj.rb +16 -16
- data/tests/cpp/rucodegen/tc_rucodegen.rb +18 -18
- data/tests/cpp/textfile_unittest/build.rb +8 -8
- data/tests/cpp/textfile_unittest/etalons/out_1.txt +1 -1
- data/tests/cpp/textfile_unittest/etalons/out_128.txt +128 -128
- data/tests/cpp/textfile_unittest/main.cpp +89 -89
- data/tests/cpp/textfile_unittest/prj.rb +8 -8
- data/tests/cpp/textfile_unittest/prj.ut.rb +18 -18
- data/tests/cpp/textfile_unittest/tc_textfile_unittest.rb +18 -18
- data/tests/cpp/toolset_name.rb +6 -6
- data/tests/cpp/vc_cleanup/prj_dll_no_implib.rb +10 -10
- data/tests/cpp/vc_cleanup/prj_dll_no_implib_simple_target_root.rb +11 -11
- data/tests/cpp/vc_cleanup/prj_dll_with_implib.rb +11 -11
- data/tests/cpp/vc_cleanup/prj_dll_with_implib_simple_target_root.rb +14 -14
- data/tests/cpp/vc_cleanup/prj_exe_no_implib.rb +10 -10
- data/tests/cpp/vc_cleanup/prj_exe_no_implib_simple_target_root.rb +11 -11
- data/tests/cpp/vc_cleanup/prj_lib.rb +10 -10
- data/tests/cpp/vc_cleanup/prj_lib_with_simple_target_root.rb +11 -11
- data/tests/cpp/vc_cleanup/tc_vc_cleanup.rb +23 -23
- data/tests/mxx_ru/binary_library/tc_binary_library.rb +57 -57
- data/tests/mxx_ru/binary_library/tc_binary_target_lib_methods.rb +114 -114
- data/tests/mxx_ru/change_default_value/ignoring_by_build_root/build.rb +8 -8
- data/tests/mxx_ru/change_default_value/ignoring_by_build_root/child_1.rb +5 -5
- data/tests/mxx_ru/change_default_value/ignoring_by_child_1/build.rb +7 -7
- data/tests/mxx_ru/change_default_value/ignoring_by_child_1/child_1.rb +5 -5
- data/tests/mxx_ru/change_default_value/ignoring_by_child_1/child_2.rb +5 -5
- data/tests/mxx_ru/change_default_value/ok/build.rb +8 -8
- data/tests/mxx_ru/change_default_value/ok/child_1.rb +8 -8
- data/tests/mxx_ru/lib_path/build.rb +8 -8
- data/tests/mxx_ru/lib_path/bye.rb +8 -8
- data/tests/mxx_ru/lib_path/hi.rb +8 -8
- data/tests/mxx_ru/lib_path/main.rb +12 -12
- data/tests/mxx_ru/lib_path/tc_lib_path.rb +18 -18
- data/tests/mxx_ru/obj_placements/tc_custom_subdir.rb +58 -58
- data/tests/mxx_ru/opt_lib_ext/build.rb +7 -7
- data/tests/mxx_ru/opt_lib_ext/hi.rb +7 -7
- data/tests/mxx_ru/opt_lib_ext/tc_opt_lib_ext.rb +18 -18
- data/tests/mxx_ru/opt_lib_ext/test-no-ext.rb +9 -9
- data/tests/mxx_ru/opt_lib_ext/test-with-ext.rb +13 -13
- data/tests/mxx_ru/plural_form_methods/tc.rb +72 -72
- data/tests/mxx_ru/qt_gen/tc_uic_result_subdir.rb +76 -76
- data/tests/mxx_ru/target_ext/prj_dll.rb +8 -8
- data/tests/mxx_ru/target_ext/prj_exe.rb +8 -8
- data/tests/mxx_ru/target_ext/prj_lib.rb +8 -8
- data/tests/mxx_ru/target_ext/tc_target_ext.rb +24 -24
- data/tests/mxx_ru/tc_makestyle_generator.rb +117 -117
- data/tests/mxx_ru/vc8/tc_actual_manifest.rb +230 -230
- data/tests/mxx_ru/vc8/tc_append_mt_commands.rb +104 -104
- data/tests/mxx_ru/vc8/tc_default_manifest.rb +17 -17
- data/tests/mxx_ru/vc8/tc_define_manifest.rb +173 -173
- data/tests/mxx_ru/vc8/tc_drop_default_manifest.rb +16 -16
- data/tests/mxx_ru/vc8/tc_invalid_params.rb +81 -81
- data/tests/mxx_ru/vc8/ts_vc8.rb +10 -10
- data/tests/qt/aclock/aclock.cpp +148 -148
- data/tests/qt/aclock/aclock.h +45 -45
- data/tests/qt/aclock/main.cpp +28 -28
- data/tests/qt/aclock/prj.rb +21 -21
- data/tests/qt/iconview/main.cpp +76 -76
- data/tests/qt/iconview/prj.rb +21 -21
- data/tests/qt/toplevel/main.cpp +9 -9
- data/tests/qt/toplevel/options.ui +587 -587
- data/tests/qt/toplevel/prj.rb +22 -22
- data/tests/test_with_compilation.rb +110 -110
- data/tests/unix/lib_linking_mode/a_shared.rb +7 -7
- data/tests/unix/lib_linking_mode/a_static.rb +7 -7
- data/tests/unix/lib_linking_mode/etalon/shared.txt +2 -2
- data/tests/unix/lib_linking_mode/etalon/static.txt +2 -2
- data/tests/unix/lib_linking_mode/main_conflict.rb +12 -12
- data/tests/unix/lib_linking_mode/main_conflict_2.rb +11 -11
- data/tests/unix/lib_linking_mode/main_shared.rb +9 -9
- data/tests/unix/lib_linking_mode/main_shared.ut.rb +11 -11
- data/tests/unix/lib_linking_mode/main_shared_2.rb +10 -10
- data/tests/unix/lib_linking_mode/main_shared_2.ut.rb +11 -11
- data/tests/unix/lib_linking_mode/main_static.rb +9 -9
- data/tests/unix/lib_linking_mode/main_static.ut.rb +11 -11
- data/tests/unix/lib_linking_mode/main_static_2.rb +10 -10
- data/tests/unix/lib_linking_mode/main_static_2.ut.rb +11 -11
- data/tests/unix/lib_linking_mode/tc_conflicted_build.rb +18 -18
- data/tests/unix/lib_linking_mode/tc_normal_build.rb +18 -18
- data/tests/unix/lib_order/a.cpp +4 -0
- data/tests/unix/lib_order/a.hpp +1 -0
- data/tests/unix/lib_order/a.rb +8 -0
- data/tests/unix/lib_order/b.cpp +10 -0
- data/tests/unix/lib_order/b.hpp +1 -0
- data/tests/unix/lib_order/b.rb +8 -0
- data/tests/unix/lib_order/build.rb +9 -0
- data/tests/unix/lib_order/c.cpp +12 -0
- data/tests/unix/lib_order/c.hpp +2 -0
- data/tests/unix/lib_order/c.rb +8 -0
- data/tests/unix/lib_order/d.cpp +7 -0
- data/tests/unix/lib_order/d.hpp +1 -0
- data/tests/unix/lib_order/d.rb +8 -0
- data/tests/unix/lib_order/main.cpp +7 -0
- data/tests/unix/lib_order/main.rb +14 -0
- data/tests/unix/lib_order/tc_normal_build.rb +16 -0
- metadata +342 -319
@@ -1,7 +1,7 @@
|
|
1
|
-
require 'mxx_ru/cpp'
|
2
|
-
|
3
|
-
Mxx_ru::Cpp::composite_target( Mxx_ru::BUILD_ROOT ) {
|
4
|
-
global_include_path '.'
|
5
|
-
|
6
|
-
required_prjs Dir.glob( '**/prj.rb' )
|
7
|
-
}
|
1
|
+
require 'mxx_ru/cpp'
|
2
|
+
|
3
|
+
Mxx_ru::Cpp::composite_target( Mxx_ru::BUILD_ROOT ) {
|
4
|
+
global_include_path '.'
|
5
|
+
|
6
|
+
required_prjs Dir.glob( '**/prj.rb' )
|
7
|
+
}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
require 'mxx_ru/cpp'
|
2
|
-
|
3
|
-
Mxx_ru::Cpp::exe_target {
|
4
|
-
|
5
|
-
Mxx_ru::enable_show_brief
|
6
|
-
|
7
|
-
target( 'test' )
|
8
|
-
|
9
|
-
cpp_sources Dir.glob( 'some/module/**/*.cpp' )
|
10
|
-
}
|
1
|
+
require 'mxx_ru/cpp'
|
2
|
+
|
3
|
+
Mxx_ru::Cpp::exe_target {
|
4
|
+
|
5
|
+
Mxx_ru::enable_show_brief
|
6
|
+
|
7
|
+
target( 'test' )
|
8
|
+
|
9
|
+
cpp_sources Dir.glob( 'some/module/**/*.cpp' )
|
10
|
+
}
|
@@ -1,18 +1,18 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
|
3
|
-
require File.dirname( __FILE__ ) + '/../../test_with_compilation'
|
4
|
-
|
5
|
-
class TC_CppSourcesGlob < Test::Unit::TestCase
|
6
|
-
include TestWithCompilation
|
7
|
-
|
8
|
-
test_path 'tests/cpp/cpp_sources_glob'
|
9
|
-
|
10
|
-
test_case :successful_compile_and_link do
|
11
|
-
assert_nothing_raised {
|
12
|
-
build( 'build.rb' )
|
13
|
-
clean( 'build.rb' )
|
14
|
-
}
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
|
1
|
+
require 'test/unit'
|
2
|
+
|
3
|
+
require File.dirname( __FILE__ ) + '/../../test_with_compilation'
|
4
|
+
|
5
|
+
class TC_CppSourcesGlob < Test::Unit::TestCase
|
6
|
+
include TestWithCompilation
|
7
|
+
|
8
|
+
test_path 'tests/cpp/cpp_sources_glob'
|
9
|
+
|
10
|
+
test_case :successful_compile_and_link do
|
11
|
+
assert_nothing_raised {
|
12
|
+
build( 'build.rb' )
|
13
|
+
clean( 'build.rb' )
|
14
|
+
}
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
@@ -1,14 +1,14 @@
|
|
1
|
-
require 'mxx_ru/cpp'
|
2
|
-
|
3
|
-
class Build < Mxx_ru::Cpp::Composite_target
|
4
|
-
def initialize( a_alias = Mxx_ru::BUILD_ROOT )
|
5
|
-
super( a_alias )
|
6
|
-
|
7
|
-
global_include_path( "h" )
|
8
|
-
|
9
|
-
required_prj( "main.rb" )
|
10
|
-
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
Mxx_ru::setup_target( Build.new )
|
1
|
+
require 'mxx_ru/cpp'
|
2
|
+
|
3
|
+
class Build < Mxx_ru::Cpp::Composite_target
|
4
|
+
def initialize( a_alias = Mxx_ru::BUILD_ROOT )
|
5
|
+
super( a_alias )
|
6
|
+
|
7
|
+
global_include_path( "h" )
|
8
|
+
|
9
|
+
required_prj( "main.rb" )
|
10
|
+
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
Mxx_ru::setup_target( Build.new )
|
@@ -1,17 +1,17 @@
|
|
1
|
-
#define WIN32_LEAN_AND_MEAN
|
2
|
-
#include <windows.h>
|
3
|
-
|
4
|
-
#include <dll.hpp>
|
5
|
-
|
6
|
-
SPEC
|
7
|
-
int say_hello()
|
8
|
-
{
|
9
|
-
MessageBox( GetDesktopWindow(),
|
10
|
-
"mswin_res_dll successfully started",
|
11
|
-
"Hello!",
|
12
|
-
MB_OK | MB_ICONINFORMATION );
|
13
|
-
|
14
|
-
return 0;
|
15
|
-
}
|
16
|
-
|
17
|
-
|
1
|
+
#define WIN32_LEAN_AND_MEAN
|
2
|
+
#include <windows.h>
|
3
|
+
|
4
|
+
#include <dll.hpp>
|
5
|
+
|
6
|
+
SPEC
|
7
|
+
int say_hello()
|
8
|
+
{
|
9
|
+
MessageBox( GetDesktopWindow(),
|
10
|
+
"mswin_res_dll successfully started",
|
11
|
+
"Hello!",
|
12
|
+
MB_OK | MB_ICONINFORMATION );
|
13
|
+
|
14
|
+
return 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
|
@@ -1,30 +1,30 @@
|
|
1
|
-
require 'mxx_ru/cpp'
|
2
|
-
|
3
|
-
class Dll < Mxx_ru::Cpp::Dll_target
|
4
|
-
def initialize( a_alias = "dll.rb" )
|
5
|
-
super( a_alias )
|
6
|
-
|
7
|
-
target( "dll" )
|
8
|
-
implib_path( "o" )
|
9
|
-
|
10
|
-
cpp_source( "dll.cpp" )
|
11
|
-
|
12
|
-
define( "DLL_PRJ" )
|
13
|
-
|
14
|
-
mswin_rc_include_path( "h" )
|
15
|
-
mswin_rc_file( "dll.rc",
|
16
|
-
[ "h/res.h",
|
17
|
-
"res/tree_fol.bmp",
|
18
|
-
"res/tree_state_1.bmp",
|
19
|
-
"res/tree_state_2.bmp" ] )
|
20
|
-
|
21
|
-
lib( "user32.lib" )
|
22
|
-
|
23
|
-
if "bcc" == toolset.name
|
24
|
-
mswin_rc_include_path( "d:\\usr\\bin\\bc6\\include" )
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
1
|
+
require 'mxx_ru/cpp'
|
2
|
+
|
3
|
+
class Dll < Mxx_ru::Cpp::Dll_target
|
4
|
+
def initialize( a_alias = "dll.rb" )
|
5
|
+
super( a_alias )
|
6
|
+
|
7
|
+
target( "dll" )
|
8
|
+
implib_path( "o" )
|
9
|
+
|
10
|
+
cpp_source( "dll.cpp" )
|
11
|
+
|
12
|
+
define( "DLL_PRJ" )
|
13
|
+
|
14
|
+
mswin_rc_include_path( "h" )
|
15
|
+
mswin_rc_file( "dll.rc",
|
16
|
+
[ "h/res.h",
|
17
|
+
"res/tree_fol.bmp",
|
18
|
+
"res/tree_state_1.bmp",
|
19
|
+
"res/tree_state_2.bmp" ] )
|
20
|
+
|
21
|
+
lib( "user32.lib" )
|
22
|
+
|
23
|
+
if "bcc" == toolset.name
|
24
|
+
mswin_rc_include_path( "d:\\usr\\bin\\bc6\\include" )
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
30
|
Mxx_ru::setup_target( Dll.new )
|
@@ -1,48 +1,48 @@
|
|
1
|
-
#include <windows.h>
|
2
|
-
|
3
|
-
#include <res.h>
|
4
|
-
|
5
|
-
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
|
6
|
-
#ifdef _WIN32
|
7
|
-
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
|
8
|
-
#pragma code_page(1251)
|
9
|
-
#endif //_WIN32
|
10
|
-
#endif
|
11
|
-
|
12
|
-
IDB_TREE_STATE_NORMAL BITMAP MOVEABLE PURE "res\\tree_state_1.bmp"
|
13
|
-
IDB_TREE_STATE_MASK BITMAP MOVEABLE PURE "res\\tree_state_2.bmp"
|
14
|
-
IDB_TREE_FOLDER BITMAP MOVEABLE PURE "res\\tree_fol.bmp"
|
15
|
-
|
16
|
-
VS_VERSION_INFO VERSIONINFO
|
17
|
-
FILEVERSION 1,0,0,0
|
18
|
-
PRODUCTVERSION 1,0,0,0
|
19
|
-
FILEFLAGSMASK 0x3fL
|
20
|
-
#ifdef _DEBUG
|
21
|
-
FILEFLAGS 0x1L
|
22
|
-
#else
|
23
|
-
FILEFLAGS 0x0L
|
24
|
-
#endif
|
25
|
-
FILEOS 0x4L
|
26
|
-
FILETYPE 0x1L
|
27
|
-
FILESUBTYPE 0x0L
|
28
|
-
BEGIN
|
29
|
-
BLOCK "StringFileInfo"
|
30
|
-
BEGIN
|
31
|
-
BLOCK "040904b0"
|
32
|
-
BEGIN
|
33
|
-
VALUE "CompanyName", "org.eao197\0"
|
34
|
-
VALUE "FileDescription", "Mxx_ru mswin_res_dll test\0"
|
35
|
-
VALUE "FileVersion", "1, 0, 0, 0\0"
|
36
|
-
VALUE "InternalName", "mswin_res_dll\0"
|
37
|
-
VALUE "LegalCopyright", "Copyright (C) 2004 Yauheni A. Akhotnikau\0"
|
38
|
-
VALUE "LegalTrademarks", "Mxx_ru (R)\0"
|
39
|
-
VALUE "OriginalFilename", "dll.dll\0"
|
40
|
-
VALUE "ProductName", "Mxx_ru\0"
|
41
|
-
VALUE "ProductVersion", "1, 0, 0, 0\0"
|
42
|
-
END
|
43
|
-
END
|
44
|
-
BLOCK "VarFileInfo"
|
45
|
-
BEGIN
|
46
|
-
VALUE "Translation", 0x409, 1200
|
47
|
-
END
|
48
|
-
END
|
1
|
+
#include <windows.h>
|
2
|
+
|
3
|
+
#include <res.h>
|
4
|
+
|
5
|
+
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
|
6
|
+
#ifdef _WIN32
|
7
|
+
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
|
8
|
+
#pragma code_page(1251)
|
9
|
+
#endif //_WIN32
|
10
|
+
#endif
|
11
|
+
|
12
|
+
IDB_TREE_STATE_NORMAL BITMAP MOVEABLE PURE "res\\tree_state_1.bmp"
|
13
|
+
IDB_TREE_STATE_MASK BITMAP MOVEABLE PURE "res\\tree_state_2.bmp"
|
14
|
+
IDB_TREE_FOLDER BITMAP MOVEABLE PURE "res\\tree_fol.bmp"
|
15
|
+
|
16
|
+
VS_VERSION_INFO VERSIONINFO
|
17
|
+
FILEVERSION 1,0,0,0
|
18
|
+
PRODUCTVERSION 1,0,0,0
|
19
|
+
FILEFLAGSMASK 0x3fL
|
20
|
+
#ifdef _DEBUG
|
21
|
+
FILEFLAGS 0x1L
|
22
|
+
#else
|
23
|
+
FILEFLAGS 0x0L
|
24
|
+
#endif
|
25
|
+
FILEOS 0x4L
|
26
|
+
FILETYPE 0x1L
|
27
|
+
FILESUBTYPE 0x0L
|
28
|
+
BEGIN
|
29
|
+
BLOCK "StringFileInfo"
|
30
|
+
BEGIN
|
31
|
+
BLOCK "040904b0"
|
32
|
+
BEGIN
|
33
|
+
VALUE "CompanyName", "org.eao197\0"
|
34
|
+
VALUE "FileDescription", "Mxx_ru mswin_res_dll test\0"
|
35
|
+
VALUE "FileVersion", "1, 0, 0, 0\0"
|
36
|
+
VALUE "InternalName", "mswin_res_dll\0"
|
37
|
+
VALUE "LegalCopyright", "Copyright (C) 2004 Yauheni A. Akhotnikau\0"
|
38
|
+
VALUE "LegalTrademarks", "Mxx_ru (R)\0"
|
39
|
+
VALUE "OriginalFilename", "dll.dll\0"
|
40
|
+
VALUE "ProductName", "Mxx_ru\0"
|
41
|
+
VALUE "ProductVersion", "1, 0, 0, 0\0"
|
42
|
+
END
|
43
|
+
END
|
44
|
+
BLOCK "VarFileInfo"
|
45
|
+
BEGIN
|
46
|
+
VALUE "Translation", 0x409, 1200
|
47
|
+
END
|
48
|
+
END
|
@@ -1,8 +1,8 @@
|
|
1
|
-
#if !defined( DLL_PRJ )
|
2
|
-
#define SPEC __declspec(dllimport)
|
3
|
-
#else
|
4
|
-
#define SPEC __declspec(dllexport)
|
5
|
-
#endif
|
6
|
-
|
7
|
-
SPEC
|
8
|
-
int say_hello();
|
1
|
+
#if !defined( DLL_PRJ )
|
2
|
+
#define SPEC __declspec(dllimport)
|
3
|
+
#else
|
4
|
+
#define SPEC __declspec(dllexport)
|
5
|
+
#endif
|
6
|
+
|
7
|
+
SPEC
|
8
|
+
int say_hello();
|
@@ -1,3 +1,3 @@
|
|
1
|
-
#define IDB_TREE_STATE_NORMAL 1001
|
2
|
-
#define IDB_TREE_STATE_MASK 1002
|
3
|
-
#define IDB_TREE_FOLDER 1003
|
1
|
+
#define IDB_TREE_STATE_NORMAL 1001
|
2
|
+
#define IDB_TREE_STATE_MASK 1002
|
3
|
+
#define IDB_TREE_FOLDER 1003
|
@@ -1,13 +1,13 @@
|
|
1
|
-
#define WIN32_LEAN_AND_MEAN
|
2
|
-
#include <windows.h>
|
3
|
-
|
4
|
-
#include <dll.hpp>
|
5
|
-
|
6
|
-
int CALLBACK WinMain(
|
7
|
-
HINSTANCE hInstance,
|
8
|
-
HINSTANCE hPrevInstance,
|
9
|
-
LPSTR lpCmdLine,
|
10
|
-
int nCmdShow )
|
11
|
-
{
|
12
|
-
return say_hello();
|
13
|
-
}
|
1
|
+
#define WIN32_LEAN_AND_MEAN
|
2
|
+
#include <windows.h>
|
3
|
+
|
4
|
+
#include <dll.hpp>
|
5
|
+
|
6
|
+
int CALLBACK WinMain(
|
7
|
+
HINSTANCE hInstance,
|
8
|
+
HINSTANCE hPrevInstance,
|
9
|
+
LPSTR lpCmdLine,
|
10
|
+
int nCmdShow )
|
11
|
+
{
|
12
|
+
return say_hello();
|
13
|
+
}
|
@@ -1,20 +1,20 @@
|
|
1
|
-
require 'mxx_ru/cpp'
|
2
|
-
|
3
|
-
class Exe < Mxx_ru::Cpp::Exe_target
|
4
|
-
def initialize( a_alias = "main.rb" )
|
5
|
-
super( a_alias )
|
6
|
-
|
7
|
-
target( "mswin_res_dll" )
|
8
|
-
screen_mode( Mxx_ru::Cpp::SCREEN_WINDOW )
|
9
|
-
|
10
|
-
required_prj( "dll.rb" )
|
11
|
-
|
12
|
-
cpp_source( "main.cpp" )
|
13
|
-
|
14
|
-
if "vc" == toolset.name
|
15
|
-
lib( "user32.lib" )
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
1
|
+
require 'mxx_ru/cpp'
|
2
|
+
|
3
|
+
class Exe < Mxx_ru::Cpp::Exe_target
|
4
|
+
def initialize( a_alias = "main.rb" )
|
5
|
+
super( a_alias )
|
6
|
+
|
7
|
+
target( "mswin_res_dll" )
|
8
|
+
screen_mode( Mxx_ru::Cpp::SCREEN_WINDOW )
|
9
|
+
|
10
|
+
required_prj( "dll.rb" )
|
11
|
+
|
12
|
+
cpp_source( "main.cpp" )
|
13
|
+
|
14
|
+
if "vc" == toolset.name
|
15
|
+
lib( "user32.lib" )
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
20
|
Mxx_ru::setup_target( Exe.new )
|
@@ -1,18 +1,18 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
|
3
|
-
require File.dirname( __FILE__ ) + '/../../test_with_compilation'
|
4
|
-
|
5
|
-
class TC_MSWinResDll < Test::Unit::TestCase
|
6
|
-
include TestWithCompilation
|
7
|
-
|
8
|
-
test_path 'tests/cpp/mswin_res_dll'
|
9
|
-
|
10
|
-
test_case :successful_compile_and_link do
|
11
|
-
assert_nothing_raised {
|
12
|
-
build( 'build.rb' )
|
13
|
-
clean( 'build.rb' )
|
14
|
-
}
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
|
1
|
+
require 'test/unit'
|
2
|
+
|
3
|
+
require File.dirname( __FILE__ ) + '/../../test_with_compilation'
|
4
|
+
|
5
|
+
class TC_MSWinResDll < Test::Unit::TestCase
|
6
|
+
include TestWithCompilation
|
7
|
+
|
8
|
+
test_path 'tests/cpp/mswin_res_dll'
|
9
|
+
|
10
|
+
test_case :successful_compile_and_link do
|
11
|
+
assert_nothing_raised {
|
12
|
+
build( 'build.rb' )
|
13
|
+
clean( 'build.rb' )
|
14
|
+
}
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
@@ -1,23 +1,23 @@
|
|
1
|
-
require 'mxx_ru/cpp'
|
2
|
-
|
3
|
-
Mxx_ru::setup_target(
|
4
|
-
Mxx_ru::Cpp::Exe_target.new( Mxx_ru::BUILD_ROOT ) {
|
5
|
-
target( "mswin_res_exe" )
|
6
|
-
screen_mode( Mxx_ru::Cpp::SCREEN_WINDOW )
|
7
|
-
|
8
|
-
cpp_source( "main.cpp" )
|
9
|
-
|
10
|
-
mswin_rc_include_path( "h" )
|
11
|
-
mswin_rc_file( "main.rc",
|
12
|
-
[ "h/res.h",
|
13
|
-
"res/tree_fol.bmp",
|
14
|
-
"res/tree_state_1.bmp",
|
15
|
-
"res/tree_state_2.bmp" ] )
|
16
|
-
|
17
|
-
lib( "user32.lib" )
|
18
|
-
|
19
|
-
if "bcc" == toolset.name
|
20
|
-
mswin_rc_include_path( "d:\\usr\\bin\\bc6\\include" )
|
21
|
-
end
|
22
|
-
}
|
23
|
-
)
|
1
|
+
require 'mxx_ru/cpp'
|
2
|
+
|
3
|
+
Mxx_ru::setup_target(
|
4
|
+
Mxx_ru::Cpp::Exe_target.new( Mxx_ru::BUILD_ROOT ) {
|
5
|
+
target( "mswin_res_exe" )
|
6
|
+
screen_mode( Mxx_ru::Cpp::SCREEN_WINDOW )
|
7
|
+
|
8
|
+
cpp_source( "main.cpp" )
|
9
|
+
|
10
|
+
mswin_rc_include_path( "h" )
|
11
|
+
mswin_rc_file( "main.rc",
|
12
|
+
[ "h/res.h",
|
13
|
+
"res/tree_fol.bmp",
|
14
|
+
"res/tree_state_1.bmp",
|
15
|
+
"res/tree_state_2.bmp" ] )
|
16
|
+
|
17
|
+
lib( "user32.lib" )
|
18
|
+
|
19
|
+
if "bcc" == toolset.name
|
20
|
+
mswin_rc_include_path( "d:\\usr\\bin\\bc6\\include" )
|
21
|
+
end
|
22
|
+
}
|
23
|
+
)
|