What's the best practice of pulling third party code?

10 views
Skip to first unread message

Arthur Hsu

unread,
Jul 14, 2011, 1:11:49 PM7/14/11
to Chromium-dev
I'm working on pulling sfntly (sfntly.googlecode.com) to Chromium so
that our print preview feature can embed subset fonts. The current
plan is to modify DEPS so that the sfntly code is pulled to
third_party/sfntly.

There are sfntly-related code that we need in Chromium but not in
sfntly. There are only few (< 5) files. I'm wondering should I
follow the Skia model to add additional directory under src, or just
put them in third_party/sfntly. What is the best practice here?

Evan Martin

unread,
Jul 14, 2011, 1:21:36 PM7/14/11
to arth...@chromium.org, Chromium-dev

I would like the following directory structure:

third_party/sfntly/ # in the chrome tree
third_party/sfntly/sfntly.gyp # in the chrome tree
third_party/sfntly/README.chromium # in the chrome tree
third_party/sfntly/src # your svn checkout

This allows us to make licensing/build-flag changes without needing to
round-trip through your repository.

Arthur Hsu

unread,
Jul 14, 2011, 1:38:37 PM7/14/11
to Chromium-dev, Evan Martin, arth...@chromium.org
What about subsetter.cc that's for chromium only and not belonging to
svn? Where should I put it?

Evan Martin

unread,
Jul 14, 2011, 1:45:20 PM7/14/11
to Arthur Hsu, Chromium-dev
Alongside the readme etc is fine, or in its own directory if you
prefer. (I mostly just don't want them to live in the upstream
repository if they are touching Chrome code, because that layout makes
refactoring on the Chrome side difficult.)

Darin Fisher

unread,
Jul 14, 2011, 1:53:23 PM7/14/11
to ev...@chromium.org, Arthur Hsu, Chromium-dev
Yes, we must avoid circular dependencies between source repositories!!
-Darin

--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
   http://groups.google.com/a/chromium.org/group/chromium-dev

Sheridan Rawlins

unread,
Jul 14, 2011, 2:19:22 PM7/14/11
to ev...@chromium.org, arth...@chromium.org, Chromium-dev
Just to check my understanding, the LICENSE file would be in the svn checkout, and the README.chromium would have reference to it?

-SCR

Evan Martin

unread,
Jul 14, 2011, 2:26:31 PM7/14/11
to Sheridan Rawlins, arth...@chromium.org, Chromium-dev
If there's an upstream LICENSE file, then yeah. Otherwise we can just
create one in the outer directory.
Reply all
Reply to author
Forward
0 new messages