← Back to team overview

brewtarget-devs team mailing list archive

Re: cmake and a subdir

 

Yeah, I skipped all that. Turns out Dropbox via C++ is tough, but I did
find QtDropbox, which should make it easier. Although that project doesn't
have much documentation. Not going to subproject it, he's not updating
much, and I'm not sure I want what immediate updates might become available.

Another thought. I need a pointer to an object that must be instantiated
early, and is available to both the database class, and the options class.
I think, but still don't know for sure, that you create a single instance,
and then use that instance for the life of the application. So, I can't put
it in Database, as that creates a new instance each time. Ideas? I gotta
admit I'm long out of practice with the codebase, but it does feel good to
get back into it a bit. Hoping I can complete this pretty quickly, at least
a simple version, but I had to email the other author to see what he can
tell me about the process to authenticate and get access.


On Sun, Mar 23, 2014 at 10:56 AM, Philip Lee <rocketman768@xxxxxxxxx> wrote:

> Theirs is a git repository right? If so, you can just add it as a
> submodule: http://git-scm.com/book/en/Git-Tools-Submodules
>
>
> On Sun, Mar 23, 2014 at 8:59 AM, Peter Buelow <goballstate@xxxxxxxxx>wrote:
>
>> Replying to my own. I actually figured out a better way to handle it. I
>> am putting it in the source dir. There shouldn't be a license issue, it's
>> GPLV2. And it seems to handle usage of QT5 such that it is self
>> deprecating. Interesting.
>>
>>
>> On Sat, Mar 22, 2014 at 9:42 PM, Peter Buelow <goballstate@xxxxxxxxx>wrote:
>>
>>> Hey all, just curious to know how I would add a subdir to the build?
>>> Basically, I am starting to work on a way to upload recipes to dropbox
>>> using their public API for non commercial apps. This becomes a nice way to
>>> be able to share recipes and then maybe have a handheld version later on.
>>> It's sort of an extension of my original effort to make the database work
>>> for multiple backends. I think this is a better idea, but am open to
>>> suggestion.
>>>
>>> Basically, I'm choosing to use qjson4 to do JSON for QT4. I want to keep
>>> it separate from the standard source because if/when the switch is made to
>>> QT5, it becomes redundant. I can't seem to figure out how cmake is used
>>> here, with the SRCDIR value. I can't get it to figure out I have a new
>>> subdir under src.
>>>
>>> Thoughts? I'll take feedback on both the idea, and how to get it to
>>> build in.
>>>
>>> https://code.google.com/p/qjson4/
>>>
>>> --
>>> Pete
>>>
>>
>>
>>
>> --
>> Pete
>>
>> --
>> Mailing list: https://launchpad.net/~brewtarget-devs
>> Post to     : brewtarget-devs@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~brewtarget-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Philip G. Lee
> rocketman768@xxxxxxxxx
>



-- 
Pete

Follow ups

References