Commits

Kaz Nishimura committed efa09f0

Added an optset file for common options.

  • Participants
  • Parent commits dff4655

Comments (0)

Files changed (4)

config/bitbucket-api-demo.optset

+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+    <PropertyGroup>
+        <IncludePath>..\config\$(Platform);..\config;$(IncludePath)</IncludePath>
+        <BCC_InstructionSet>6</BCC_InstructionSet>
+    </PropertyGroup>
+    <ProjectExtensions>
+        <Borland.Personality>CPlusPlusBuilder.Personality.12</Borland.Personality>
+        <Borland.ProjectType>OptionSet</Borland.ProjectType>
+        <BorlandProject>
+            <CPlusPlusBuilder.Personality/>
+        </BorlandProject>
+        <ProjectFileVersion>12</ProjectFileVersion>
+    </ProjectExtensions>
+</Project>

config/oauth_config.h

+/*
+ * OAuth 1.0a consumer key and secret configuration
+ * Copyright (C) 2014 Kaz Nishimura
+ *
+ * Copying and distribution of this file, with or without modification, are
+ * permitted in any medium without royalty provided the copyright notice and
+ * this notice are preserved.  This file is offered as-is, without any
+ * warranty.
+ */
+
+/*
+ * To use your own consumer key and secret, copy this file first into
+ * config/PLATFORM, e.g. config/Win32, then remove the following #error
+ * directive, and insert yours in the macro definitions below.
+ */
+#error <oauth_config.h> not configured
+
+#define CONSUMER_KEY ""
+#define CONSUMER_SECRET ""

default/oauth_config.h

-/*
- * OAuth 1.0a consumer key and secret configuration
- * Copyright (C) 2014 Kaz Nishimura
- *
- * Copying and distribution of this file, with or without modification, are
- * permitted in any medium without royalty provided the copyright notice and
- * this notice are preserved.  This file is offered as-is, without any
- * warranty.
- */
-
-/*
- * To use your own consumer key and secret, copy this file to subdirectory
- * src/PLATFORM/CONFIG and insert yours below.
- */
-
-#define CONSUMER_KEY ""
-#define CONSUMER_SECRET ""

src/client-demo.cbproj

         <Cfg_2>true</Cfg_2>
         <Base>true</Base>
     </PropertyGroup>
+    <Import Project="..\config\bitbucket-api-demo.optset" Condition="'$(Base)'!='' And Exists('..\config\bitbucket-api-demo.optset')"/>
     <PropertyGroup Condition="'$(Base)'!=''">
-        <IncludePath>..;..\default;$(IncludePath)</IncludePath>
         <_TCHARMapping>wchar_t</_TCHARMapping>
         <Icns_MainIcns>$(BDS)\bin\cbuilder_PROJECTICNS.icns</Icns_MainIcns>
         <Multithreaded>true</Multithreaded>
         <BCC_OptimizeForSpeed>true</BCC_OptimizeForSpeed>
         <BCC_ExtendedErrorInfo>true</BCC_ExtendedErrorInfo>
         <ILINK_TranslatedLibraryPath>$(BDSLIB)\$(PLATFORM)\release\$(LANGDIR);$(ILINK_TranslatedLibraryPath)</ILINK_TranslatedLibraryPath>
+        <CfgDependentOn>..\config\bitbucket-api-demo.optset</CfgDependentOn>
     </PropertyGroup>
     <PropertyGroup Condition="'$(Base_OSX32)'!=''">
         <IncludePath>$(BDSINCLUDE)\osx\fmx;$(IncludePath)</IncludePath>
         </BuildConfiguration>
         <BuildConfiguration Include="Base">
             <Key>Base</Key>
+            <DependentOn>..\config\bitbucket-api-demo.optset</DependentOn>
         </BuildConfiguration>
         <BuildConfiguration Include="Debug">
             <Key>Cfg_1</Key>