Commit graph

80 commits

Author SHA1 Message Date
Amine Khaldi 66d7842e82 [CMAKE]
- Fix resource compilation with windres for 2.8.4

svn path=/branches/cmake-bringup/; revision=51156
2011-03-26 13:31:09 +00:00
Timo Kreuzer 9cc4f5ceee [CMAKE]
Don't automatically add stub files to the sources, instead add them manually where neccessary. also fix a number of spec files to resemble actual state of implementation.

svn path=/branches/cmake-bringup/; revision=50574
2011-01-31 14:20:53 +00:00
Amine Khaldi 14c01bd73c [CMAKE]
- Properly handle setting the suffix variable. Fixes import libs creation.

svn path=/branches/cmake-bringup/; revision=50533
2011-01-28 11:25:24 +00:00
Amine Khaldi 818d876f00 [CMAKE]
- The suffix variable already holds a dot, don't add another one. Fixes import libs generation.

svn path=/branches/cmake-bringup/; revision=50525
2011-01-28 09:31:54 +00:00
Timo Kreuzer 39ec3cff8c [CMAKE]
get the library suffix from the target instead of passing it to the macro.

svn path=/branches/cmake-bringup/; revision=50519
2011-01-27 21:50:54 +00:00
Timo Kreuzer 0d54e35b94 [CMAKE]
Refactor IDL compilation:
- Move all macros to idl-support.cmake
- Make rpc proxy a static library, instead of fiddeling with SOURCE variable
- Merge client and server rpc libraries into one library
- Reorder global makelist file a little
- Improve configure script
- Improve naming, use add_* when a target is added, generate_* when only a file is generated
- Don't compile wbemcli.idl on MSVC (temp hack)
- Don't compile rossym on MSVC, we don't use it
- Use ml64 as assembler when compiling for amd64
- fix spec2def invocation

svn path=/branches/cmake-bringup/; revision=50478
2011-01-24 18:13:40 +00:00
Timo Kreuzer 0f17c54568 [CMAKE]
Don't add importlibs folder as link directory for anything other than i386 builds

svn path=/branches/cmake-bringup/; revision=50427
2011-01-19 11:33:27 +00:00
Amine Khaldi 4bb42765f5 [CMAKE]
- Improve the warnings and compiler flags according to the different architectures we have.

svn path=/branches/cmake-bringup/; revision=50340
2011-01-09 16:49:10 +00:00
Amine Khaldi 152b92b928 [CMAKE]
- Improve message headers handling.

svn path=/branches/cmake-bringup/; revision=50334
2011-01-08 20:44:41 +00:00
Amine Khaldi 287ba86f03 [CMAKE]
- Add -fshort-wchar to host tools

svn path=/branches/cmake-bringup/; revision=50320
2011-01-08 11:52:58 +00:00
Amine Khaldi 166360a829 [CMAKE]
- Initial support of the arm toolchain/build.

svn path=/branches/cmake-bringup/; revision=50300
2011-01-06 16:57:56 +00:00
Amine Khaldi 6c0c23cb53 [CMAKE]
- Sync with trunk head (r50270)
- This also reverts r49298.

svn path=/branches/cmake-bringup/; revision=50271
2011-01-03 00:33:31 +00:00
Timo Kreuzer 8c14a1744a [CMAKE]
Add generation of a depencency graph for shared libraries.
The output is a graphml file. Can be enabled with GENERATE_DEPENDENCY_GRAPH switch.

svn path=/branches/cmake-bringup/; revision=50243
2010-12-31 16:49:49 +00:00
Timo Kreuzer 6ebba3e6a5 [CMAKE]
Go back to DllMain entrypoints. Fixes cardgames.

svn path=/branches/cmake-bringup/; revision=50241
2010-12-31 15:53:55 +00:00
Timo Kreuzer 5351f44808 [CMAKE]
LD is stupid and doesn't handle stdcall decoration as proper as dlltool does (after we provided a patch). Passing --kill-at, also kills C++ mangled names and exports with stdcall decoration are imposible. In trunk we use dlltool to generate an exp file that we link with LD, but in the cmake branch we pass the def file to LD directly. Luckily we have a tool called spec2def that can handle these things. We now generate 2 different .def files, one for LD, containing the undecorated export name forwarded to the decorated symbol name (FooFunc=FooFunc@12), while the 2nd def file which is passed to dlltool for exportlib generation has full stdcall decorations. --kill-at is now passed to dlltool only. This commit might break msvc, but should be pretty easy to fix.

svn path=/branches/cmake-bringup/; revision=50217
2010-12-29 23:58:17 +00:00
Timo Kreuzer 78cc22ef6f [CMAKE]
- fix decorations on non-x86 builds
- improve batt and aclui
- remove set_export_spec macro

svn path=/branches/cmake-bringup/; revision=50207
2010-12-29 08:08:18 +00:00
Timo Kreuzer 4595756a37 [CMAKE]
Fix stdcall entry points for x86

svn path=/branches/cmake-bringup/; revision=50189
2010-12-28 12:42:05 +00:00
Timo Kreuzer ad52f07f5a [CMAKE]
- Fix set_entrypoint for other architectures than x86, add an optional 3rd parameter for stdcall stackbytes
- don't add stdcall decoration to def files for other architectures then x86

svn path=/branches/cmake-bringup/; revision=50188
2010-12-28 12:14:13 +00:00
Amine Khaldi 0e74512f1e [CMAKE]
- Improve amd64 toolchain support.

svn path=/branches/cmake-bringup/; revision=50171
2010-12-27 20:10:40 +00:00
Amine Khaldi bec9e0bfa6 [CMAKE]
- Add rostests to build when the folder exists.
- Alter the importlib target macro to handle definition files along with spec files.

svn path=/branches/cmake-bringup/; revision=50101
2010-12-22 16:37:32 +00:00
Jérôme Gardou 88a37f9ee8 [CMAKE]
- issue an error when an invalid module type is provided
  - add nativedll module type.

svn path=/branches/cmake-bringup/; revision=50075
2010-12-20 23:51:41 +00:00
Amine Khaldi a1e7c693ec [CMAKE]
- Emit debug info.

svn path=/branches/cmake-bringup/; revision=49942
2010-12-03 22:23:37 +00:00
Amine Khaldi c2575b551d [CMAKE]
- Add dllname optional parameter to the import lib creation macro.
- Use it in the kernel.

svn path=/branches/cmake-bringup/; revision=49930
2010-12-03 16:17:41 +00:00
Amine Khaldi c47b3863d9 [CMAKE]
- Adapt to the new spec2def syntax.

svn path=/branches/cmake-bringup/; revision=49908
2010-12-02 23:37:33 +00:00
Amine Khaldi faa04c1086 [CMAKE]
- Group some cross compiling related sections.
- Implement add_importlib_target() for gcc.
- Improve the msvc version.

svn path=/branches/cmake-bringup/; revision=49903
2010-12-02 21:56:40 +00:00
Sylvain Petreolle 1d2630cc29 [CMAKE]
Add stubs file to source automatically.

Gcc: fix set_rc_compiler() so that it doesn't conflict with custom_incdefs().

svn path=/branches/cmake-bringup/; revision=49893
2010-12-02 12:36:16 +00:00
Amine Khaldi 0f1a6952bb [CMAKE]
- Add auto stubs support to the gcc based toolchains.

svn path=/branches/cmake-bringup/; revision=49864
2010-11-29 18:33:07 +00:00
Timo Kreuzer 89a3a5f960 [SPEC2DEF]
- add support for stubs generation
- add support for "proper" stubs, with calling convention and parameter dump
- handle -private
- change invokation a bit
[CMAKE]
- remove the old VARIANT hack

svn path=/branches/cmake-bringup/; revision=49862
2010-11-29 17:53:20 +00:00
Timo Kreuzer 5c2f95e5a4 [CMAKE]
Make rpcproxy macro portable

svn path=/branches/cmake-bringup/; revision=49856
2010-11-28 20:16:40 +00:00
Amine Khaldi 4a8860b952 - Correct the entry point for win32dll, win32ocx and cpl module types.
- Fix acledit.

svn path=/branches/cmake-bringup/; revision=49806
2010-11-26 23:57:03 +00:00
Timo Kreuzer 674c35dcd7 [CMAKE]
No precompiled headers for MSVC atm

svn path=/branches/cmake-bringup/; revision=49705
2010-11-22 12:25:25 +00:00
Timo Kreuzer 26718d757e [CMAKE]
- Add /nologo, when preprocessing asm files
- Move add_pch to compiler specific files (maybe someone can fix it for MSVC)
- Update set_module_type for MSVC

svn path=/branches/cmake-bringup/; revision=49683
2010-11-21 12:32:03 +00:00
Timo Kreuzer f12dd9240e [CMAKE]
Add EXTERNAL_OBJECT TRUE for generated def files on gcc builds. Fixes empty exports.
Add kernelmodedriver module type for MSVC

svn path=/branches/cmake-bringup/; revision=49677
2010-11-21 00:55:46 +00:00
Timo Kreuzer 8ee00e2746 [CMAKE]
Bye, bye, winebuild. Welcome spec2def.

svn path=/branches/cmake-bringup/; revision=49675
2010-11-20 21:43:57 +00:00
Amine Khaldi 77c6616d62 [CMAKE]
- Revert back to including the definition files into the source files list.

svn path=/branches/cmake-bringup/; revision=49637
2010-11-19 17:41:48 +00:00
Timo Kreuzer 8dc1f0eb0e [CMAKE]
Fix dependencies, fix native-spec2def

svn path=/branches/cmake-bringup/; revision=49634
2010-11-19 16:38:25 +00:00
Timo Kreuzer 390cf6bc5f [CMAKE]
Add a new macro set_export_spec(), that replaces the use of spec2def + adding the generated def file to the sources
Remove EXTERNAL_OBJECT TRUE property for the generated def files.

svn path=/branches/cmake-bringup/; revision=49629
2010-11-19 14:21:18 +00:00
Jérôme Gardou d738b24b6f [CMAKE]
- use correct link script file for freeldr and setupldr
  - use correct definition file for advapi32
  - don't specify name to add_bootcd_target if not needed
  - portcls is not a kernel mode driver
  - Disable stcall fixup, except for mesa32 which requires it
  - remove an useless file from minihal, add a forgotten one to freeldr

svn path=/branches/cmake-bringup/; revision=49615
2010-11-18 21:32:10 +00:00
Jérôme Gardou eea0d56fec [CAKE]
- simplify set_image_base

svn path=/branches/cmake-bringup/; revision=49571
2010-11-12 23:52:40 +00:00
Timo Kreuzer 2b5855372c [CMAKE]
- Move spec2def into comppiler specific files, use spec2pdef tool on MSVC builds
- Add a ridiculously complex macro to create the importlibs for MSVC. (It was hard for me to figure this out, so be it for you ;-))

svn path=/branches/cmake-bringup/; revision=49545
2010-11-10 12:33:24 +00:00
Timo Kreuzer 04d745acca [CMAKE]
add missing dependency

svn path=/branches/cmake-bringup/; revision=49535
2010-11-08 19:01:52 +00:00
Timo Kreuzer c4f1145fca [CMAKE]
- add new macro add_linkerflag to avoid code duplication
- add new macro set_pdef_file, replacing the use of pdef2def, which is neccessary to resolve issues with MSVC. cmake doesn't handle def files as source files very well, when they are not in the current source directory.

svn path=/branches/cmake-bringup/; revision=49524
2010-11-08 12:24:33 +00:00
Amine Khaldi 1c18b9b723 [CMAKE]
- Add a preprocessed definition file for acledit.
- Add the pdef2def macro.
- Include wpp into build, widl links to it.
- Fix libmpg123.

svn path=/branches/cmake-bringup/; revision=49509
2010-11-06 11:31:38 +00:00
Amine Khaldi 7393a02b74 [CMAKE]
- Explicitly disable auto imports for executables.
- Set a proper linker invocation for C++ modules.

svn path=/branches/cmake-bringup/; revision=49503
2010-11-05 23:17:29 +00:00
Sylvain Petreolle 8456a5473e [CMAKE]
Revert incorrect auto import change and use proper definitions instead.

svn path=/branches/cmake-bringup/; revision=49476
2010-11-05 09:38:42 +00:00
Jérôme Gardou fa36534888 [CMAKE]
Poor little gcc, forgotten by Timo

svn path=/branches/cmake-bringup/; revision=49447
2010-11-02 17:25:36 +00:00
Jérôme Gardou 887046a6ee [CMAKE]
- build msvc importlibs explicitly from def file
  - circumvent lack of pseh lib in MSVC.
  - fix advapi32.def

svn path=/branches/cmake-bringup/; revision=49409
2010-11-01 17:24:32 +00:00
Timo Kreuzer ee10c4c2c7 [CMAKE]
Implement add_importlib_target macro to build importlibs for MSVC. We can't use MSVC's libraries, as they are incomplete.
gcc version does nothing.

svn path=/branches/cmake-bringup/; revision=49377
2010-10-31 17:31:05 +00:00
Sylvain Petreolle 2be091d196 [CMAKE]
Enable auto import.

svn path=/branches/cmake-bringup/; revision=49339
2010-10-29 12:27:26 +00:00
Jérôme Gardou f9b79bf9fc [CMAKE]
- Downgrade a warning to a status, so this is not too intrusive

svn path=/branches/cmake-bringup/; revision=49317
2010-10-27 22:25:35 +00:00