add support for cpl applets
[reactos.git] / reactos / tools / rbuild / backend / msvc / vcprojmaker.cpp
index 674206b..c2dc469 100644 (file)
@@ -50,7 +50,7 @@ MSVCBackend::_generate_vcproj ( const Module& module )
 \r
        string module_type = GetExtension(module.GetTargetName());\r
        bool lib = (module_type == ".lib") || (module_type == ".a");\r
-       bool dll = (module_type == ".dll");\r
+       bool dll = (module_type == ".dll") || (module_type == ".cpl");\r
        bool exe = (module_type == ".exe");\r
        // TODO FIXME - need more checks here for 'sys' and possibly 'drv'?\r
 \r
@@ -109,6 +109,10 @@ MSVCBackend::_generate_vcproj ( const Module& module )
                        if ( !strncmp(incs[i]->directory.c_str(), "w32api", 6 ) )\r
                                continue;\r
 \r
+                       // explicitly omit include/wine directories\r
+                       if ( !strncmp(incs[i]->directory.c_str(), "include\\wine", 12 ) )\r
+                               continue;\r
+\r
                        string path = Path::RelativeFromDirectory (\r
                                incs[i]->directory,\r
                                module.GetBasePath() );\r
@@ -201,6 +205,7 @@ MSVCBackend::_generate_vcproj ( const Module& module )
 \r
                fprintf ( OUT, "\t\t\t\tAdditionalIncludeDirectories=\"" );\r
                bool multiple_includes = false;\r
+               fprintf ( OUT, "/.;" );\r
                for ( i = 0; i < includes.size(); i++ )\r
                {\r
                        const string& include = includes[i];\r