Recommended folder setup for simple CEF program

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Recommended folder setup for simple CEF program

Postby somebodyy » Thu Aug 27, 2015 4:13 pm

Hi,

is there a recommended way to setup a small cefsimple-like application?
E.g. I want to push a small application like this to a Github repository.
Obviously I want to be able to update CEF easily and optimally have none of the CEF files in my repository (instead e.g. in an ignored subfolder which gets filled by some setup script or using a git submodule).

So far I just modified cefsimple, hower:
That still leaves me with the more advanced cefclient sample etc. Removing it might make updating unpleasant.

How do you deal with this?

Cheers

somebodyy
somebodyy
Newbie
 
Posts: 7
Joined: Wed Aug 19, 2015 10:51 am

Re: Recommended folder setup for simple CEF program

Postby HarmlessDave » Thu Aug 27, 2015 6:45 pm

Windows, Visual Studio 2013:

I have all original CEF files in their own folder tree, like E: > VS2013 > CEF3. Then my version of cefclient is in a separate folder, E: > VS2013 > MyAppFolder. The Visual Studio project settings include ../CEF3/xxx as needed.

It's good to have the plain, original cefclient around. That way I can run it to compare the behavior against my version.
HarmlessDave
Expert
 
Posts: 370
Joined: Fri Jul 11, 2014 2:02 pm

Re: Recommended folder setup for simple CEF program

Postby somebodyy » Sat Aug 29, 2015 9:51 am

So during my research I found this repository: https://github.com/andrejpavlovic/cef-cmake-externalproject-sample
There are still some problems with it though:
* Heavy duplication due to copied CMakeLists.txt and macros.cmake
* Makes use of binary build instead of git tag/branch/commit
* Need for subdirectory with separate CMakeLists.txt which holds the cefsimple stuff

Additionally I have not been able to replicate it under Mac OS X yet.
I will keep you updated on the progress I make :)
somebodyy
Newbie
 
Posts: 7
Joined: Wed Aug 19, 2015 10:51 am

Re: Recommended folder setup for simple CEF program

Postby newaira » Tue Sep 01, 2015 12:32 pm

There is a pull patch on that repository by someone who made it work on OSX:
https://github.com/andrejpavlovic/cef-c ... ple/pull/1

The cefsimple folder is there just as example to show that add_externalproject is working.
newaira
Techie
 
Posts: 19
Joined: Sun Apr 19, 2015 7:43 pm


Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 46 guests