Commit graph

64 commits

Author SHA1 Message Date
Timo Kreuzer 58541489db [CMAKE]
- Drop support for MSVC versions below 1300
- use the same flags for WDK / host as normal
- Disable optimization on Debug builds, its incompatible with /ZI

svn path=/branches/cmake-bringup/; revision=50689
2011-02-14 11:09:48 +00:00
Amine Khaldi 3f7f1e0d7f [CMAKE]
- Get rid of the redundancy in setting msvc flags, and set /ZI instead of /Zi for both host and target modules.
- Get rid of the redundancy in setting the default behaviour of the FIND_XXX() commands between toolchain files.

svn path=/branches/cmake-bringup/; revision=50688
2011-02-14 10:32:46 +00:00
Timo Kreuzer 79d0882159 [CMAKE]
Correctly define CMAKE_RC_CREATE_SHARED_LIBRARY and CMAKE_ASM_CREATE_SHARED_LIBRARY for MSVC.

svn path=/branches/cmake-bringup/; revision=50588
2011-02-01 22:06:31 +00:00
Timo Kreuzer 8ea8ddbce1 [CMAKE]
Disable run-time type information for MSVC

svn path=/branches/cmake-bringup/; revision=50578
2011-01-31 19:47:02 +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
Timo Kreuzer 48a509e1d2 [CMAKE]
Ignore MSVC standard includes

svn path=/branches/cmake-bringup/; revision=50549
2011-01-29 10:29:42 +00:00
Timo Kreuzer 09d50a5784 [CMAKE]
- Preserve case of symbols when assembling (this is not default)
- link to msvcsup

svn path=/branches/cmake-bringup/; revision=50536
2011-01-28 17:40:36 +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 67e321c158 [CMAKE]
- Fix mc command
- temporary disable optimization settings to prevent warning

svn path=/branches/cmake-bringup/; revision=50490
2011-01-25 18:09:29 +00:00
Timo Kreuzer f4dd5fd0c6 [CMAKE]
msc.cmake: fix spec2def invocation, add pseh library, remove set_export_spec

svn path=/branches/cmake-bringup/; revision=50488
2011-01-25 16:31:04 +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 6e889205be [CMAKE]
test for the buildbot

svn path=/branches/cmake-bringup/; revision=50436
2011-01-19 16:19:52 +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 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
Timo Kreuzer 7d0047c609 [CMAKE]
Invoke spec2def only once to generate asm stub and def file.

svn path=/branches/cmake-bringup/; revision=49904
2010-12-02 22:16:59 +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 0522c531df [CMAKE]
- Add the stubs file as an output file.

svn path=/branches/cmake-bringup/; revision=49866
2010-11-29 18:36:22 +00:00
Amine Khaldi 2a6108be5a [CMAKE]
- Add auto stubs support to the msvc based toolchains.

svn path=/branches/cmake-bringup/; revision=49865
2010-11-29 18:35:43 +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
Timo Kreuzer 5782837e7e [CMAKE]
Reapply the midl hack. Someone wants to trick me or something. I could swear it just worked one minute ago.

svn path=/branches/cmake-bringup/; revision=49847
2010-11-28 16:22:38 +00:00
Timo Kreuzer 7cef73429a [CMAKE]
Fix dependencies for importlib targets

svn path=/branches/cmake-bringup/; revision=49846
2010-11-28 16:12:25 +00:00
Timo Kreuzer 4592c1140e [CMAKE]
- Remove the dxsdk hack. It works now without. Why? I don't know. Why didn't it work before? I have no idea. Maybe the newlines. Anyway it works. If someone breaks it, I'll ki^Z^Z revert it ;-)

svn path=/branches/cmake-bringup/; revision=49845
2010-11-28 15:52:00 +00:00
Timo Kreuzer 0ee737e354 [CMAKE]
Add a hack for midl. Don't ask me why, but renaming IEnumVARIANT to something different globally fixes the compilation of dxsdk. someone with more idl knowledge should check that.

svn path=/branches/cmake-bringup/; revision=49843
2010-11-28 15:40:47 +00:00
Timo Kreuzer f4d65e62c9 [CMAKE]
Remove the old global strict_context_handle hack

svn path=/branches/cmake-bringup/; revision=49842
2010-11-28 12:58:10 +00:00
Timo Kreuzer adfc8941cc [CMAKE]
ML wants /nologo, not /NOLOGO

svn path=/branches/cmake-bringup/; revision=49828
2010-11-27 23:41:23 +00:00
Timo Kreuzer efa7393534 [CMAKE]
- implicitly link to msvcsup
- set proper entrypoints
- add linkerflags /DLL and /DRIVER

svn path=/branches/cmake-bringup/; revision=49805
2010-11-26 23:48:07 +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 e1f1113670 [CMAKE]
Allow no entrypoint for MSVC and use no entrypoint in genincdata to silence warning

svn path=/branches/cmake-bringup/; revision=49697
2010-11-21 19:47:55 +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 5cd6be3583 [CMAKE]
- Pass /nologo to the assembler
- don't implicitly link msvcrt and kernel32

svn path=/branches/cmake-bringup/; revision=49667
2010-11-20 16:21:24 +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
Timo Kreuzer dc0023e49d [CMAKE]
Fix typos in add_importlib_target macro, use /NOLOGO

svn path=/branches/cmake-bringup/; revision=49621
2010-11-19 10:54:05 +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 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
Timo Kreuzer 39989dc9be [CMAKE]
Add /SAFESEH:NO to MSVC linker command line to fix unresolved symbol issue.

svn path=/branches/cmake-bringup/; revision=49473
2010-11-05 00:08:12 +00:00
Timo Kreuzer d63277525c [CMAKE]
- fix add_importlib_target
- fix win32dll entrypoint (we wouldn't need to specify one, if the one in mingw lib had enough underscores)

svn path=/branches/cmake-bringup/; revision=49453
2010-11-02 21:31:45 +00:00
Amine Khaldi cc843688e5 [CMAKE]
- Minor formatting.

svn path=/branches/cmake-bringup/; revision=49451
2010-11-02 20:27:06 +00:00
Timo Kreuzer 2b2d3d2776 [CMAKE]
Rename add_importlib_def to add_importlib_target
add importlib targets for ntdll, msvcrt, shell32, user32

svn path=/branches/cmake-bringup/; revision=49427
2010-11-02 09:22:58 +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 cf02eb354a [CMAKE]
Add missing dependencies for MSVC add_importlibs

svn path=/branches/cmake-bringup/; revision=49398
2010-11-01 09:39:53 +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