courtneypresto / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Adding Symbian Project Definition File #206

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The project definition files allows GoogleTest to be built for the WINSCW
target using standard Symbian build tools and directly from with within
Carbide.c++ IDE. I don't know if it is a good idea to add them as a folder
in the gtest root?

Currently build fails for GCCE, it seems the compiler does not handle the
fact that the gtest source files are named .cc instead of .cpp. Anybody
know how to fix?

Thanks for a great framework - and thanks for porting it to Symbian :)
Best regards,
Morten 

Original issue reported on code.google.com by mvp...@gmail.com on 13 Oct 2009 at 10:08

Attachments:

GoogleCodeExporter commented 9 years ago
This shouldn't be a reason. But to verify that, you can create a gtest-all.cpp 
file 
and #include "gtest-all.cc" in it.

Original comment by vladlosev on 20 Oct 2009 at 10:46

GoogleCodeExporter commented 9 years ago

Original comment by zhanyong...@gmail.com on 21 Oct 2009 at 4:22

GoogleCodeExporter commented 9 years ago
It is easy to tell the compiler to treat .cc files as if they were .cpp. You'll 
need 
to modify the file epoc32\tools\cl_arm.pm, specifically the function 
SelectLangOptions.

You'll see there is an entry for .cpp files similar to this:
    if ($Ext=~/^.cpp$/) {
        return " \$(CPP_LANG_OPTION) $preinclude ";
    }

So you just need to add an equivalent line for .cc:
    if ($Ext=~/^.cc$/) {
        return " \$(CPP_LANG_OPTION) $preinclude ";
    }

Hope that helps :)

Original comment by ach...@gmail.com on 21 Oct 2009 at 10:39

GoogleCodeExporter commented 9 years ago
Morten -

We'll hold off adding this until there is more demand. One thing you can do is 
to 
compile Google Test from a single file gtest-all.cc which include all Google 
Test .cc 
files. We are going to maintain it as we add more .cc files to Google Test.

Original comment by vladlosev on 22 Oct 2009 at 1:02

GoogleCodeExporter commented 9 years ago
+SYSTEMINCLUDE     \epoc32\include\stdapis
+SYSTEMINCLUDE     \epoc32\include\stdapis\sys
+SYSTEMINCLUDE     \epoc32\include\stdapis\stlport

Hi everyone,

 I installed the latest Symbian SDK and carbide c++. I tried to run the bld.inf given
in this issue. However, it complains that it cant find the include folders 
above. 

Just wondering where I can import those header files and the related libraries?

Thx

Fred

Original comment by freddykw...@gmail.com on 8 Feb 2010 at 5:45

GoogleCodeExporter commented 9 years ago
Unfortunately Symbian doesn't provide an STL implementation, so you'll have to 
install the Open C/C++ plugin for Symbian:
http://www.forum.nokia.com/Technology_Topics/Development_Platforms/Open_C_and_C+
+/

And here is their Getting Started where they mention the include paths, in the 
"Changes to the MMP file" section:
http://library.forum.nokia.com/index.jsp?
topic=/S60_5th_Edition_Cpp_Developers_Library/GUID-FE27AB35-C6FD-4F11-802D-
0D5FCFFC2976/html/mrt/s60_introduction_to_openc4.html

Hope that helps!

   Araceli

Original comment by ach...@gmail.com on 10 Feb 2010 at 7:11

GoogleCodeExporter commented 9 years ago
Not worth it.  We'll instead publish documentation on how to build gtest using 
any
build system.

Original comment by w...@google.com on 6 Mar 2010 at 6:10